|
Thread: Com
-
Apr 30th, 2003, 06:11 AM
#1
Thread Starter
Hyperactive Member
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?
Last edited by packetVB; Apr 30th, 2003 at 06:15 AM.
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
|