I have a vc++ 2005 dialog based application, where I use a worker thread to do some background processing.
The worker thread is implemented as a global function in the dialog class
I am able to access the variables of the dialog class inside the worker thread but I am not able to get some of their their values correctly inside the worker thread.
For example, I have initialized a COM object (using CoInitilize) in the dialog class, but I am not able to access its latest value. I tried declaring them globally but still I couldn't get their values inside the thread.
Please tell me how can I access COM objects inside worker threads
Thanks.