I have found that the problem comes out when I use this code (see below) inside my ThreadFunc.
g_hElmbDialog = handle of the dialog I call the thread.
If intead of calling CreateDialog using...
...
case ID_TH_SCAN_INJ:
{
ThreadClass thread;
int node = GetDlgItemInt(hDlg, IDC_COMBO_ELMB, NULL, NULL);
int time = GetDlgItemInt(hDlg, IDC_TH_SCAN_TIME, NULL,...
This is practically the whole thing I do to call this thread...from the main thread I call this funcion (funcA). Then I pass some parameters using Param.
Yes, it could be...I am not using any protection but when I run this new thread I do not do nothing on the main thread, I just wait...(but pehaps it is not enough)
It is happening something that I can not understand. When I run a function which injects 100 pulses (using external electronics...) from my main program it works properly but When I do the same using...
try to use it like this...and tell me if it works (I am also curious), I had a problem like this some time ago and I could solve in this way...I dont know why...if anyone knows please write us.
...
Hi,
I am trying to build a 2d graphic in my program. I started using the picture control, using it as rectangle.
What I am not being able to do is to get the size of this window (picture frame)...