Click to See Complete Forum and Search --> : defining fuction


joe joe
August 5th, 1999, 12:04 PM
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 COurApp:public CWinApp
{ public:
virtual BOOL InitInstance();
// error- InitInstance local class member function must be defined within the class
};

Thanks

Martin Speiser
August 5th, 1999, 02:39 PM
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