Passing any string to Thread Process
-
//hi the type of threading im using is.. #include #include using namespace std; int shutdown=0; int main(){ unsigned sid; (HANDLE)_beginthreadex( NULL, 0, sendrecv, NULL, 0, &sid); while(1){ Sleep(1000); if(shutdown==1){ break; } } } unsigned __stdcall threadprocess(void *params){ return 0; } //What i need to do is pass a string from the main() to the threadprocess.. Please Help.
-
//hi the type of threading im using is.. #include #include using namespace std; int shutdown=0; int main(){ unsigned sid; (HANDLE)_beginthreadex( NULL, 0, sendrecv, NULL, 0, &sid); while(1){ Sleep(1000); if(shutdown==1){ break; } } } unsigned __stdcall threadprocess(void *params){ return 0; } //What i need to do is pass a string from the main() to the threadprocess.. Please Help.
-
//hi the type of threading im using is.. #include #include using namespace std; int shutdown=0; int main(){ unsigned sid; (HANDLE)_beginthreadex( NULL, 0, sendrecv, NULL, 0, &sid); while(1){ Sleep(1000); if(shutdown==1){ break; } } } unsigned __stdcall threadprocess(void *params){ return 0; } //What i need to do is pass a string from the main() to the threadprocess.. Please Help.
-
:-D
"If you can dodge a wrench, you can dodge a ball."
-
:-D Good reply!
"We make a living by what we get, we make a life by what we give." --Winston Churchill