CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Posts
    21

    defining fuction

    Could someone please tell me how to define this function. I got this error and don't have the code or knowledge on how to define this function.


    class COurAppublic CWinApp
    { public:
    virtual BOOL InitInstance();
    // error- InitInstance local class member function must be defined within the class
    };

    Thanks


  2. #2
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    418

    Re: defining fuction

    Hi Joe,

    in your COurApp.cpp (or whatever the name of the file is) you need to define it.

    BOOL COurApp::InitInstance()
    {
    // code here
    }




    Martin

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

Featured