I have been testing multithreading in windows. currently the function for the begin thread takes a single argument.
I want the addem function to take more that one function but I am unsure of the proper sytax.
currently it looks like this:
(process.h etc has been include, this version works)
int addem(int);
int main() {
_beginthread((void (*)(void *))addem, 0, (void *)5000);
/* Do Other Stuff */
}
.... etc
I want addem to take two values:
int addem(int, char *);
The syntax of the _beginthread is very confusing, how do I pass two parameters to the addem function in the _beginthread? The documentation just says that the final parameter is *arglist? What is the sytax of the arglist and for that matter are any of the (void(*)(void *))'s part of some kind of function declaration?
BYron