Click here to Skip to main content
15,921,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSerialization woes Pin
benjymous30-May-02 5:01
benjymous30-May-02 5:01 
GeneralRe: Serialization woes Pin
Prem Kumar30-May-02 5:15
Prem Kumar30-May-02 5:15 
GeneralRe: Serialization woes Pin
Ravi Bhavnani30-May-02 9:20
professionalRavi Bhavnani30-May-02 9:20 
GeneralRe: Serialization woes Pin
jbarton30-May-02 10:06
jbarton30-May-02 10:06 
GeneralRe: Serialization woes Pin
benjymous30-May-02 11:23
benjymous30-May-02 11:23 
GeneralRe: Serialization woes Pin
benjymous30-May-02 22:28
benjymous30-May-02 22:28 
GeneralThreads Pin
Nnamdi Onyeyiri30-May-02 4:57
Nnamdi Onyeyiri30-May-02 4:57 
GeneralRe: Threads Pin
Roger Allen30-May-02 5:01
Roger Allen30-May-02 5:01 
This is a two step process. Generally you create a static function in the class which is initially called when you create the thread. The parameter you pass through is a pointer to the object that you want to run the thread in. In the static function you cast the pointer to your object type and call the function in the class you want to use.

AfxBeginThread(YourClass::SteppingStone, (LPVOID)pObject) ;

UINT YourClass::SteppingStone(LPVOID lpv)
{
	YourClass	*pObject = (YourClass*)lpv ;
	int ret = pObject->YourFunction() ;
	return ret ;
}



Roger Allen
Sonork 100.10016

If I had a quote, it would be a very good one.
GeneralRe: Threads Pin
Nnamdi Onyeyiri30-May-02 5:20
Nnamdi Onyeyiri30-May-02 5:20 
GeneralRe: Threads Pin
Ernest Laurentin30-May-02 5:26
Ernest Laurentin30-May-02 5:26 
GeneralRe: Threads Pin
Nnamdi Onyeyiri30-May-02 5:31
Nnamdi Onyeyiri30-May-02 5:31 
GeneralRe: Threads Pin
Ernest Laurentin30-May-02 6:10
Ernest Laurentin30-May-02 6:10 
GeneralRe: Threads Pin
Bill Wilson30-May-02 11:56
Bill Wilson30-May-02 11:56 
GeneralRe: Threads Pin
Prem Kumar30-May-02 5:10
Prem Kumar30-May-02 5:10 
Questionhow to get Column count of a List Control Pin
hex30-May-02 4:21
hex30-May-02 4:21 
AnswerRe: how to get Column count of a List Control Pin
Ernest Laurentin30-May-02 4:47
Ernest Laurentin30-May-02 4:47 
AnswerRe: how to get Column count of a List Control Pin
Michael P Butler30-May-02 5:10
Michael P Butler30-May-02 5:10 
QuestionHow to intantiate an Acrobat Writer App Pin
30-May-02 3:30
suss30-May-02 3:30 
AnswerRe: How to intantiate an Acrobat Writer App Pin
Navin30-May-02 6:45
Navin30-May-02 6:45 
QuestionCan I delete the .ncb and .opt files? Pin
Tommy Svensson30-May-02 3:23
Tommy Svensson30-May-02 3:23 
AnswerRe: Can I delete the .ncb and .opt files? Pin
KarstenK30-May-02 3:28
mveKarstenK30-May-02 3:28 
AnswerRe: Can I delete the .ncb and .opt files? Pin
Renjith Ramachandran30-May-02 3:43
Renjith Ramachandran30-May-02 3:43 
GeneralResource Question Pin
Renjith Ramachandran30-May-02 3:13
Renjith Ramachandran30-May-02 3:13 
GeneralRe: Resource Question Pin
Paul M Watt30-May-02 5:32
mentorPaul M Watt30-May-02 5:32 
GeneralRe: Resource Question Pin
Renjith Ramachandran30-May-02 6:21
Renjith Ramachandran30-May-02 6:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.