How can I use ActiveX controls and WaitHandle.SignalAndWait() in the same app?  
Author Message
hdp203





PostPosted: Visual C++ Language, How can I use ActiveX controls and WaitHandle.SignalAndWait() in the same app? Top

In order for me to use ActiveX controls, my main thread must be STA, but I also need to call WaitHandle.SignalAndWait(...) which requires my main thread to be MTA.

Any suggestions on how to do use both Any workarounds. Thanks.

hdp.



Visual C++4  
 
 
hdp203





PostPosted: Visual C++ Language, How can I use ActiveX controls and WaitHandle.SignalAndWait() in the same app? Top

I solved this by creating another thread that calls WaitHandle.SignalAndWait(...).

Is there a better way