I have a class Client that is the main class for my Windows C++ application. Inside the client class, I have a number of variables and functions. One variable I'm having trouble with is the manager:
private IRManager* manager;
The main function of my class is
int APIENTRY InnoVisitClient::_tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
and inside it, I initialize the manager:
manager = remoteClient->InitEngine(sipAccount, hWndChildVideo, hWndChildPreview);
However, in some of the other functions, I try to use the manager (i.e.
manager->HangUp();), and I get the error "IntelliSense: a nonstatic member reference must be relative to a specific object".
I'm not exactly sure how to solve this, since every time I use the manager in the main function in the same way, I don't get an error.