DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C (http://www.daniweb.com/forums/forum118.html)
-   -   How do I pass the multiple parameters to arglist of _beginthread? (http://www.daniweb.com/forums/thread39546.html)

perlsu Feb 14th, 2006 1:51 am
How do I pass the multiple parameters to arglist of _beginthread?
 
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

WolfPack Feb 14th, 2006 2:38 am
Re: How do I pass the multiple parameters to arglist of _beginthread?
 
You should create a single structure with the required arguments as members and pass it to the _beginthread function.


All times are GMT -4. The time now is 10:33 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC