Search:

Type: Posts; User: nomer

Search: Search took 0.00 seconds.

  1. made sure it is outside the debugger, still no luck

    Well, here is what I did:

    1.

    void term_func()
    {
    cout << "term_func() was called by terminate().\n";

    exit(-1);
    }
  2. why my termination routing is not called when program crashes

    I recently upgraded my project from VC++ 6.0 to VC++ 2005. I am trying to define some error logging in my custom termination routing. And here is what I did:

    1. define


    void term_func()
    {...
  3. The sample code looks good, I will try it out. ...

    The sample code looks good, I will try it out. Thanks for the help!
  4. Thanks for the pointer! However I searched...

    Thanks for the pointer!

    However I searched GDI+ but can't see how to convert the image format, any sample code or could you refer to some class/function names?

    Thanks!
  5. how to convert a bitmap image to a jpg image file using C++?

    Don't know if I need to do this in 2 steps:
    1. convert bmp image to ipg image
    2. create any jpg file header and save it to a file?

    Any sample file?

    Thank you in advance!
  6. sorry for the confusion!

    Did more test and found that the section of code doesn't only execute once when multiple mouse clicks were simulated.

    Here is what happened: I use a program to enumerate the windows on the...
  7. Why the application receives 2 mouse clicks when I send out 1 mouse_event?

    Sometimes it seems multiple mouse clicks are received by the application who owns (dx, dy) location while the following code section only executes once:

    mouse_event(MOUSEEVENTF_ABSOLUTE |...
  8. Thanks for the fast and great reply!

    Thanks for the fast and great reply!
  9. How to get image from the screen and then save it to a file?

    I want to clip a rectangle box from the desktop and save the pixels as an image. Then save the image to a file.

    So there are 2 questions:

    1. what's the efficient way to get the pixels in a...
  10. Replies
    1
    Views
    1,780

    "connection timed out" for VNC

    VNC server is on WinXP, sometimes I get "connection timed out" when I try to access the server machine. Rebooting the server solves the problem, but it will happen again after a while.

    Anyone...
  11. Difference between SendMessage and SendInput for faking a mouse click

    I used to use the following code to fake mouse click on a check box:
    GetWindowRect(bHandle, &rect);
    SetCursorPos(rect.left + 0xA, rect.top + 0x5);
    SendMessage(bHandle, WM_LBUTTONDOWN, 0,...
  12. What's the correct way to check whether a button is visible by the user?

    Program A (a window) has button B in it. A toggles B from visible state to invisible state once a minute roughly, in another word, B becomes visible for a minute, then becomes invisible for a...
  13. Replies
    6
    Views
    3,064

    Just tested it and it doesn't make the other...

    Just tested it and it doesn't make the other application crash! --- this is amazing! like a hidden treasure.

    And if it works, it would be actually better than using EM_GETSELTEXT, as I don't...
  14. Replies
    6
    Views
    3,064

    The other application crash on either EM_EXSETSEL...

    The other application crash on either EM_EXSETSEL or EM_GETSELTEXT (I put 1 line at a time to try to identify the issue).

    I use the following to retrieve the class name:
    GetClassName(hwnd, ch,...
  15. Replies
    6
    Views
    3,064

    Thanks bithub ! My program doesn't crash, the...

    Thanks bithub !

    My program doesn't crash, the windows application that I tried to get the text from crashes --- the application is a blackbox for me so I don't know how and why it crashes --- OS...
  16. Replies
    6
    Views
    3,064

    RickEdit control question

    My program needs to read text from a RichEdit control in another windows
    application. All I have is the Handle of the RichEdit control.

    So first I tried:
    lResult = SendMessage( hwnd,...
Results 1 to 16 of 16