-
Anyone,
I'm making a Win32 Application and I have the folling code as the header of my main header file
class CAPIApp : public CWinApp
{
public:
CAPIApp();
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
};
From this I am getting an error CWinApp class underfind. No doubt I am forgetting to include a file, which one is it. I am also getting an error "WinMain, mus be __stdcall" What is this about???
Thanx in advance
-
I might have got it
I'm totally retarded, at this so cut me some slack, k??
Anyway, How do I get the hWnd for current instance of my Application, so I can't pass it as a parameter in WinMain.
Thanx Again
-
Your code looks like a cross between API and MFC :confused:
I can't totally see what you're getting at.
-
LOL
Thanx,
The more I read around, the more I think that 2. Umm in that case, would someone be able to show me how to actually run the WinMainn function. Cause I'm stuffed.