-
Com
ok Im trying to start a thread in COM using _beginthread.
Is this the right way to go about this?
For exampe, if I have my class named ComTest
and two methods
STDMETHOD (SomeFunc)(int x,int y);
STDMETHOD (StartThread)();
and an event
Fire_Done(int x);
now in Somefunc definition I want to start thread and when the thread is complete fire the event.
This is what im trying for beginthread
_beginthread(StartThread,0,NULL);
but when I try this i get
cannot convert parameter 1 from 'long (void)' to 'void (__cdecl *)(void *)'
Can this be type cast?, if so how? Or am I out to luch?