PDA

Click to See Complete Forum and Search --> : Heirarchial Classed. HELP!


Wak
Feb 24th, 2001, 04:02 AM
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

Wak
Feb 24th, 2001, 04:11 AM
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

parksie
Feb 24th, 2001, 04:31 AM
Your code looks like a cross between API and MFC :confused:

I can't totally see what you're getting at.

Wak
Feb 24th, 2001, 04:35 AM
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.