|
-
Feb 24th, 2001, 05:02 AM
#1
Thread Starter
Hyperactive Member
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
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Feb 24th, 2001, 05:11 AM
#2
Thread Starter
Hyperactive Member
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
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Feb 24th, 2001, 05:31 AM
#3
Monday Morning Lunatic
Your code looks like a cross between API and MFC 
I can't totally see what you're getting at.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Feb 24th, 2001, 05:35 AM
#4
Thread Starter
Hyperactive Member
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.
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|