I am trying to make a Windows app, but I have a problem. When I try to compile it, it gives me error "switch quantity not integer". I have defined it, but still it doesn't work. I'm making it with Dev-C++. Here's source code of function with problem:
Code:
LRESULT CALLBACK ViestinKasittelija( HWND hWnd,
UINT Viesti,
WPARAM wParam,
LPARAM lParam)
{
switch(viesti) {
case WM_DESTROY:
{
PostQuitMessage( 0 );
return TRUE;
break;
}
}
return DefWindowProc( hWnd, Viesti, wParam, lParam );
}
If someone needs to see whole source I can put it here.
I posted this here, because I think this has nothing to do with making Windows-apps. But if someone thinks this belongs to Windows-forum, move this.