Sunway xiao
March 31st, 1999, 09:30 AM
hi:
Environment : Windows 95/NT, Visual C++ 6.0 SP2
I have a strange problem. I create two thread. one is prime thread, others is non-prime thread
In non-prime thread , I create a "MODEL" dialogbox. and I use following code to set dialogbox 'topmost'
SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE);
but I find that the dialogbox display sometimes and do not display sometimes.
when dialogbox do not display, the application is hung up .
I think if threads compete resource unsuccessfully. because I update the icon of frame every 200ms In main thread.
I do not know how to solve.
any help need
Thanks in advance
Regards
Sunway Xiao
Environment : Windows 95/NT, Visual C++ 6.0 SP2
I have a strange problem. I create two thread. one is prime thread, others is non-prime thread
In non-prime thread , I create a "MODEL" dialogbox. and I use following code to set dialogbox 'topmost'
SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE);
but I find that the dialogbox display sometimes and do not display sometimes.
when dialogbox do not display, the application is hung up .
I think if threads compete resource unsuccessfully. because I update the icon of frame every 200ms In main thread.
I do not know how to solve.
any help need
Thanks in advance
Regards
Sunway Xiao