CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: CatShoe

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    900

    Re: [RESOLVED] 2d Array problem

    one additional question...

    why does



    for(int i=0;i<iRows;i++)
    delete[] map[i];

    delete[] map;
  2. Replies
    4
    Views
    900

    [RESOLVED] 2d Array problem

    Hi Folks,

    I've got a problem with the code below:



    char** map;
    int iRows = 40;
    int iColumns = 50;
  3. Thread: COM question

    by CatShoe
    Replies
    0
    Views
    769

    COM in pure win32 api

    Hi Folks,

    I need to receive the entry point from a function in "jscript.dll". Actually, it's not a real
    exported function, but let me explain it (I'm not really expirienced with COM).

    Some...
  4. Replies
    22
    Views
    23,376

    Re: DLL Injection Detection

    What you are trying to do is swim against the stream, that is the problem all game developers
    have since day 1.
    cj-wijtmans post is maybe the best advice, not using any win api calls (any function...
  5. Replies
    19
    Views
    4,048

    Re: winapi c++ - xml

    Great statement for 2009!
  6. Replies
    19
    Views
    4,048

    Re: winapi c++ - xml

    You probably should give people who are trying to help you, a little bit more respect. Your comments above didn't sound so.

    Anyways, I wish you a happy new year :-)
  7. Replies
    19
    Views
    4,048

    Re: winapi c++ - xml

    Big words for someone who asks a lot of, "noobish" questions.
    Think about it.
  8. Replies
    10
    Views
    1,466

    Standard C strings

    Hello Folks,

    I have some trouble figuring this out correctly. If you have a function that should
    manipulate a string in some way, you probably do it like this:



    wchar_t *strmani(wchar_t...
  9. Replies
    4
    Views
    1,100

    Re: Getting and Setting current Directory

    I does not look wrong actually. I assume your "errormessage()" prints
    the GetLastError() result.

    You should try to add a backslash "\\" as last character even if SetCurrentDirectory should do...
  10. Replies
    2
    Views
    974

    Re: drawing problems Property Page

    Within a WM_PAINT, you have to draw to the DC returned
    by BeginPaint().



    case WM_PAINT:{
    PAINTSTRUCT ps;
    HDC myDC = BeginPaint(hWnd, &ps);

    // do whatever
  11. Replies
    3
    Views
    768

    Re: Files txt counter

    FindFirstFile() & FindNextFile() will do it.
  12. Replies
    3
    Views
    1,744

    Re: Can't get WH_CBT to work right

    I stopped reading when I saw this:



    std::string dll_attrib = "theDLL.dll";
    registerHooks = (registerCall)GetProcAddress(hinstLib, dll_attrib.c_str());


    there is no function in your lib (at...
  13. Re: Runtime terminated in an unusual way

    Try not to assign values, you should copy your string using lstrcpyW() / wcscpy() / strcpy() / StringCchCopy() or a similar function.

    Copy the byte array with memcpy() / wmemcpy() or a similar...
  14. Re: finding problem in showing the message in th edit box

    Well, I just assume you are using standard sockets for data transfer.
    So you should have a thread in your server application just waiting for some data to receive
    in your example.
    If your clients...
  15. Replies
    6
    Views
    3,645

    Re: c++ winapi - Dialog Resize in Main Window

    I will not ask why you don't just use the handle you already could have.
    So I'll try to give an answer to your question.

    If you don't know the dialogs or the controls handle, there are some api...
  16. Replies
    2
    Views
    4,101

    Filename from HANDLE

    Hi Folks,

    is there a way to track down a file handle (if its a disk file obv) to its filename ?

    I know about GetFileInformationByHandleEx(), but I don't like a "vista or better" requirement.
    ...
  17. Replies
    6
    Views
    3,645

    Re: c++ winapi - Dialog Resize in Main Window

    I'm really confused.
    Regardless if you assign the return value of CreateDialog, it returns a HWND.
    If you just do not assign this value to a variable you do not have a direct access to this window,...
  18. Thread: Tooltip

    by CatShoe
    Replies
    8
    Views
    2,040

    Re: Tooltip

    Great comment.
    Are you kidding me? Just paste a link to whatever you mean if you know for sure what
    the problem is about.
  19. Thread: Tooltip

    by CatShoe
    Replies
    8
    Views
    2,040

    Re: Tooltip

    I'm pretty much helpless on that too.
    The rectangle is ok, I'm drawing it with FillRect().

    I'm using exactly the code I posted, I Just changed the InitCommonControls() with InitCommonControlsEx()...
  20. Replies
    0
    Views
    2,971

    DeleteTimerQueueTimer()

    Hi Folks,

    I got one question about Deleting a queue timer. Do I have/need to call
    DeleteTimerQueueTimer() for a queue timer that was created with a WT_EXECUTEONLYONCE flag?

    I think it's a...
  21. Thread: Tooltip

    by CatShoe
    Replies
    8
    Views
    2,040

    Re: Tooltip

    Thanks for the answers, I adapted my the code but still, no tooltip is showing up.
    It looks like this now:



    case WM_INITDIALOG:{
    ...
    InitCommonControls();
    ...
  22. Replies
    5
    Views
    1,359

    Re: How to detect an application

    Thanks for answering, but thats not what I need.

    I need to detect another application or process, so the question is still open:

    What is the most reliable method of detecting an application?
  23. Replies
    5
    Views
    1,359

    Re: How to detect an application

    haha :>
    Well I'm cheating on games like tetris and gradius. Fooling around with win32 and data/memory managment.
  24. Thread: Tooltip

    by CatShoe
    Replies
    8
    Views
    2,040

    Tooltip

    Is there anything wrong in this piece of code?



    void CreateToolTip(HWND hwndParent, RECT rectTip, LPWSTR lpTipString){
    HWND hwndTT = CreateWindowEx(WS_EX_TOPMOST,
    TOOLTIPS_CLASS, NULL,...
  25. Replies
    5
    Views
    1,359

    [RESOLVED] How to detect an application

    Hi Folks,

    I was wondering about the different ways to find/detect a running application or a process.
    Afaik, if you know the window class and/or title of an application you can easily use...
Results 1 to 25 of 38
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured