|
-
Feb 9th, 2002, 04:35 PM
#1
Thread Starter
Addicted Member
AfxBeginThread and passing objects
I've declared a worker thread as a static member of a given class:
UINT MyClass:Mythread(LPVOID pParam)
{
pParam->MemberOfMyClass = TRUE;
}
Then I begin the thread of execution:
m_hInputThread = AfxBeginThread(Mythread, (LPVOID)this);
I'm not sure exactly how I can provide AfxBeginThread access to the this pointer. I need to provide the worker class access to the members of the class.
Help and thanks in advance!
Philip
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
|