Error to Build...

Hi all,i've got a huge problem with windows program
This is the code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <windows.h>

LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    switch(msg)
    {
        case WM_CLOSE:
            DestroyWindow(hwnd);
        break;
        case WM_DESTROY:
            PostQuitMessage(0);
        break;
        default:
            return DefWindowProc(hwnd, msg, wParam, lParam);
    }
    return 0;
}

But when i hit Compile everything is ok and when i hit Build it just fails
and says - 2 error(s), 0 warning(s).
:( Can someone help me with that ?
Could you actually copy and paste the errors themselves? Just telling us that there are two errors is meaningless...
Topic archived. No new replies allowed.