|
-
July 28th, 1999, 07:26 AM
#1
MultiThreading Problem!!!- Urgent...
Hi,
I have a problem. I have written a multithreaded program and I have used worker threads for this. ie., pWinThread = AfxBeginThread(MyThread,GetSafeHwnd(),THREAD_PRIORITY_NORMAL,0,0,NULL);
and the MyThread is .....
UINT MyThread(LPVOID pParam). This is working fine and I am doing some continuous drawing in this thread....But, the problem arises when I want to call/Create one of the modless dialog boxes I have in my application.I get an error Saying the modless dialog object which I have in my dialog class is not defined.i.e., From this thread function(which is global)..I am not able to access the member objects of any of the classes.
Tell me how to getaway with this problem. If the solution is using User interface thread please tell me how to use it.
Thanks in Advance..,
Vittal
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|