Hi,
In the constructor of my class Scene I call a thread "CreateThread" that not recognized the attributes of my class... By any chance, is it a property on the use of threads???
The message error is:Code:Scene::Scene() { HANDLE hThreadTest; unsigned long iID; spnavi = new Device(); spnavi -> initDevice(); hThreadTest = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)ThreadTest,NULL,0,&iID); } DWORD WINAPI Scene::ThreadTest (void) { while (true) { spnavi -> loop(); } }
1>.\Class Scene.cpp(33) : error C2227: left of '->loop' must point to class/struct/union/generic type.
Does anyone have any idea?
Thanks.



LinkBack URL
About LinkBacks



CornedBee