Results 1 to 4 of 4

Thread: Heirarchial Classed. HELP!

  1. #1

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Unhappy

    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

  2. #2

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Unhappy 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

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  4. #4

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    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
  •  



Click Here to Expand Forum to Full Width