How do I pass the multiple parameters to arglist of _beginthread?

Reply

Join Date: Sep 2005
Posts: 17
Reputation: perlsu is an unknown quantity at this point 
Solved Threads: 0
perlsu perlsu is offline Offline
Newbie Poster

How do I pass the multiple parameters to arglist of _beginthread?

 
0
  #1
Feb 14th, 2006
I use Win 32 API for thread creation :

unsigned long _beginthread( void( __cdecl *start_address )( void * ), unsigned stack_size, void *arglist );

How do I pass the multiple parameters to arglist?

Thanks a lot.

Rgds,
perlsu
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: How do I pass the multiple parameters to arglist of _beginthread?

 
0
  #2
Feb 14th, 2006
You should create a single structure with the required arguments as members and pass it to the _beginthread function.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC