god this B****'s been ........ing me off all morning, i swear i am going to trow my computer right out a flying airplane.
Code:
//MFC.cpp
#include <afxwin.h>
#include "ClassesDefined.cpp"
BEGIN_MESSAGE_MAP(MyWnd, CFrameWnd)
ON_WM_PAINT()
END_MESSAGE_MAP()
MyApp myApp;
Code:
//ClassesDefined.cpp
#include "Classes.h"
MyWnd::MyWnd()
{
Create(NULL, "MFC Continued");
}
MyWnd::OnPaint()
{
}
//MyApp
BOOL MyApp::InitInstance()
{
p_mMainWnd = new MyWnd;
p_mMainWnd->ShowWindow(p_nCmdShow);
p_mMainWnd->UpdateWindow();
return TRUE;
}
Code:
//Classes.h
//MFC Derived Classes
class MyWnd : public CFrameWnd
{
public:
MyWnd();
protected:
void OnPaint();
DECLARE_MESSAGE_MAP()
};
class MyApp : public CWinApp
{
public:
BOOL InitInstance();
};
And for some stupid reason thos god damn stupid compiler wont link the files correctly!!!
Compiler:
Microsoft Visual Studio .NET 2003 Professional