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

Search:

Type: Posts; User: macabre13

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,545

    Re: Exception Handling

    Maybe you forgot to initialize the CriticalSection ?
  2. Re: how to dynamically set sort/!sort on listbox

    That's the way I will follow. But I was hoping for sth more tricky ;)
    Thanks for help.

    /J
  3. Re: how to dynamically set sort/!sort on listbox

    OK, good to know that.

    BTW maybe you know why, when I'm creating the listbox from a scratch the size of item fonts are bigger that the ones used in original listbox.
    Where or how change the size...
  4. how to dynamically set sort/!sort on listbox

    Hi,
    I'm trying to change the sorting/not sorting style of listbox in runtime.
    Code example


    HWND hListItemsList = GetDlgItem( hDlg, ID_DLG_ITEMLIST );
    DWORD style =...
  5. Re: SetWindowsHookEx stop receivings notifications after focus lost

    OK. I will look for that book. Thanks!

    /m13
  6. Re: SetWindowsHookEx stop receivings notifications after focus lost

    The problem was that I was unable to understand why some other loads my .dll.
    But I have think it over and now I do understand this way:

    *) I register my hookProc in system and let it run.
    *)...
  7. Replies
    5
    Views
    6,750

    Re: sample source MessageBox API Hook

    Try this one:
    http://www.codeguru.com/forum/showthread.php?t=469549
  8. Re: SetWindowsHookEx stop receivings notifications after focus lost

    Ok.
    Now it works with this #pragma's. I don't know how and why this works. But I will investigate this. Any way thanks a lot.
  9. Re: SetWindowsHookEx stop receivings notifications after focus lost

    So I did some test and:
    On win xp32 with 32bit .dll my application works in 50%:
    I'm able to set hook, get the message and prevent other application from receiving it. But after loosing focus my...
  10. Re: SetWindowsHookEx stop receivings notifications after focus lost

    Hi thanks for reply.
    Is there a way to hook both 32 and 64 bit? Should I implement and call SetWindowsHook from 32 and 64 bit build dll?

    gModule is taken from dllMain whe .dll is being loaded....
  11. Re: SetWindowsHookEx stop receivings notifications after focus lost

    Are you sure that yours answer help me somehow?

    Maybe it is a mistake when ctrl+c/v but like I said it works when windows has the focus. So looks like I compiled my code before and simply paste...
  12. [solved] SetWindowsHookEx stop receivings notifications after focus lost

    Good evening :)

    I've search a lot of forums but did not found any answer to my question. So here I post it.

    I'm trying to set hook to keyboard to receive all multimedia keys notification, for...
  13. Re: Detect what key has been pressed (even if not focused)

    If I'm not wrong, you're looking for:

    GetAsyncKeyState()
  14. Re: How to restrict memory usage of a c++ program

    You can try achieve this by implementing your own memory manager and overloading new operator.
  15. Re: ChooseFont dialog not displaying sample font

    My way:


    CHOOSEFONT chFont;
    ZeroMemory( &chFont, sizeof( CHOOSEFONT ));
    chFont.lStructSize = sizeof( CHOOSEFONT );
    chFont.hwndOwner = aParent;
    chFont.lpLogFont =...
  16. Thread: Try Catch

    by macabre13
    Replies
    7
    Views
    1,433

    Re: Try Catch

    I would rather say


    try
    {
    // some dangerous code
    }
    catch( ... ) // this should catch ANY exception
    {
    cout<<" tra la la la la la la la"
  17. Replies
    5
    Views
    981

    Re: how to map ftp://something to q:

    How to write simple disk driver? :>
  18. Replies
    5
    Views
    981

    Re: how to map ftp://something to q:

    Yes and it failed.
    I was able to add it to my network place, but not mapped as localdrive.

    How ever I did search the net, and found some apps that can do that. Unfortunately I think that those...
  19. Replies
    5
    Views
    981

    how to map ftp://something to q:

    Hi,
    I'm trying to map some ftp folder to local windows drive. Since it is not a normal local resource mapping, and all my attemps to use WNetAddConnectionX fails. I fail have no idea, how to do...
  20. Replies
    9
    Views
    743

    Re: Making an app that self debugs

    @Red Squirrel - if you find the solution, please post it here ;)

    I think that so long as it's not managed code, there isn't way to self debug and self fix code. And like Lindley said, in my...
  21. Replies
    2
    Views
    579

    Re: handling exception

    Hi, IMHO thats not to bad as it looks ;)
    You could try also something similiar:


    while(true)
    try{
    handle.execute("INSERT.....");
    break;
    }
    catch( DB_Exc& e )
  22. Replies
    3
    Views
    662

    Re: a question about "delete"

    Next delete on second pointer should caous an exception. That why people discover smart pointers or auto pointers.
  23. Re: acces violation while trying to catch an exception by reference

    0xcdcdcdc8 <<--- im most cases this is an uninitialized variable memory pattern!
  24. Replies
    10
    Views
    1,058

    Re: Explorer style status bars.

    Quote from MSDN2k7 april:


    Check for proper STYLE value in msdn.
  25. Re: [RESOLVED] problem with enum of hdd/partitions and opening a handle

    And a little code


    void describePartitions()
    {
    TCHAR drive[128] = TEXT("");
    TCHAR letter = TEXT('');
    TCHAR _out[256] = TEXT("");
    DWORD _outSize = 256;
    BOOL result = false;
Results 1 to 25 of 47
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center