Results 1 to 1 of 1

Thread: Com

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Okinawa, Japan
    Posts
    271

    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
  •  



Click Here to Expand Forum to Full Width