Hey,
Here's an example of some of my code.
How can I set the value for the pointer inside the pointer of the struct?Code:struct ss { int *a; }; DWORD WINAPI thread ( LPVOID *pParam ) { ss *s = reinterpret_cast<ss*>(pParam); int a = 4; //None of the following lines work: s->a = a; (*s).a = a; return 0; }
Thanks,
Guitarist809