I have just started programming in MFC and was given a tutorial by my lecturer, unfortunately the very first very simple program is not working. My lecturer is away for a week so im stuck! also i have only 3-4 weeks to start and finish a GUI project!
// This is the file lab9.h
// Include standard windows functions and classes
#include <afxwin.h>
// We always derive classes from the main MFC classes
// Derive main window class
class COurWin:public CFrameWnd
{
// We shall want control over construction
public:
COurWin();
// We must declare the message map - no semi-colon
DECLARE_MESSAGE_MAP()
};
// Derive application class
class COurApp : public CWinApp
{
// We need to override InitInstance()
BOOL InitInstance();
};
I don't really know a lot about this program but it is giving up the error -
error C2664: 'CFrameWnd::Create' : cannot convert parameter 2 from 'const char [10]' to 'LPCTSTR'