Well, here is what I did:
1.
void term_func()
{
cout << "term_func() was called by terminate().\n";
exit(-1);
}
Type: Posts; User: nomer
Well, here is what I did:
1.
void term_func()
{
cout << "term_func() was called by terminate().\n";
exit(-1);
}
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()
{...
The sample code looks good, I will try it out. Thanks for the help!
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!
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!
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...
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 |...
Thanks for the fast and great reply!
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...
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...
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,...
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...
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...
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,...
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...
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,...