HINSTANCE hMyInstance = GetModuleHandle(NULL);And, as you mentioned, its the first parameter to your WinMain() function. In MFC:
HINSTANCE hMyInstance = AfxGetInstanceHandle();
HINSTANCE hMyInstance = GetModuleHandle(NULL);And, as you mentioned, its the first parameter to your WinMain() function. In MFC:
HINSTANCE hMyInstance = AfxGetInstanceHandle();