|
-
December 3rd, 2006, 01:34 PM
#1
Quick CWinThread Question please
Hi All...
Not being au fait with multi threading, Id just like to get your advice,
Im starting a thread like this:
Code:
m_pFileHub = AfxBeginThread(RUNTIME_CLASS(CFileHub),
THREAD_PRIORITY_NORMAL,
0,
CREATE_SUSPENDED);
where m_pFileHub is a pointer to a class derived from CWinThread.
Now the compiler doesnt like it because it insists on returning a CWinThread*, not a CFileHub*.
My question is, how do I start my thread then get access to its variables and methods. I had thought I would be able to use the pointer returned by AfxBeginThread !
Thanks all for helping me
Phill
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
|