ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 5801

passing a string to another thread [XBOX360]

by godzhand1 - 01-23-2022 - 04:02 AM
#1
hi all... dont know if anyone here can help me..i am making a socket connection to an irc server through xbox


its already working and that is not the problem

the problem is that i have added multithreading and cannot pass a string to the new thread




Code:
ExCreateThread(&moduleHandle, 0, &threadId, (VOID*)ConnectSock , (LPTHREAD_START_ROUTINE)ConnectSock, NULL, 0x02);

NULL is what i see everyone using

but i want to pass a string to it



Code:
ExCreateThread(&moduleHandle, 0, &threadId, (VOID*)ConnectSock , (LPTHREAD_START_ROUTINE)ConnectSock, &GT, 0x02);


and then in ConnectSock()

i think i would have
Code:
void ConnectSock(LPVOID zGT) {


}


what do i do to send the string over am i doing that part right? and if so  how do i cast the pointer back into a string?
Reply

Users browsing: 2 Guest(s)