Hi all,
Error is cannot convert from HANDLE to HANDLE[1]. I know it has something to do with the cast that I have there on that second line of the ThreadProc but, for the life of me, I cannot figure out how to get it right.
Thanks in advance!
Code:
HANDLE hnd = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)ThreadProc, (LPVOID)handleArray, 0, &dwThread);
...
DWORD ThreadProc(LPVOID lpParameter)
{
HANDLE hArray[NUM_EVENTS];
hArray = (HANDLE)&lpParameter;
...
Thanks in advance!
Comment