Mehh -2

i just need an example of what am i doing wrong in this one, i did not ask you what books to read or where to start...

Mehh -2 Newbie Poster

[CODE]#include

include "resource.h"

const char g_szClassName[] = "myWindowClass";
return; DialogBox(hInstance, MAKEINTRESOURCE(IDD_SIMPLECONTROL), NULL, SimpleProc);}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
BOOL CALLBACK SimpleProc(HWND hWndDlg, UINT Message, WPARAM wParam,
LPARAM lParam){switch(Message){
case WM_INITDIALOG:
return TRUE;
case WM_COMMAND:switch ( LOWORD (wParam) ) {
case ID_HELLO:MessageBox(NULL,"Hey", "Hallo!", MB_OK);
break;
case ID_FILE_EXIT:EndDialog(hWndDlg, 0)
break;
case WM_CLOSE:EndDialog(hWndDlg, 0);
break;
default:
return FALSE;}
return TRUE;}[/CODE]

what am i doing wrong??

mvmalderen commented: Rrrrrrrubbbbbiiisssh! -2