-2

I have searched everywhere, but to no avail. Could someone tell me what's wrong with this code? It is giving me the "Error: Identifier "XXX" Is Undefined"

    #include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
    LPSTR lpCmdLine, int nCmdShow)
{
    MSG msg;
    MyRegisterClass(hInstance);
    if(!InitInstance (hInstance, nCmdShow))
        return false;
    while (GetMessage(&msg, NULL, 0, 0))
    {
        TranslateMessage(&msg);
        DispatchMessage(&msg);
    }
    return msg.wParam;
}
Dylan Corriveau
  • 2,561
  • 4
  • 29
  • 36

1 Answers1

0

There are no MyRegisterClass nor InitInstance global functions in Windows.h

user1610015
  • 6,561
  • 2
  • 15
  • 18
  • I take it the OP made them and hasn't shown them. `MyRegisterClass` backs me up on that. – chris Jan 11 '13 at 02:16