Ask a problem,about inheritance :)
****************static DLL*****************
<<<<<<<<<CmView.H>>>>>>>>>>>
#pragma once
class AFX_NOVTABLE CmView : public CView
{
public:
__declspec(dllexport) CmView();
};
<<<<<<<<<CmView.CPP>>>>>>>>
#include "stdafx.h"
#include "CmView.h"
CmView::CmView()
{
}
******************static EXE******************
<<<<<<<<EXEView.h>>>>>>>>>
#pragma once
#include "CmView.h"
#pragma comment(lib,"dll.lib")
class EXEView : public CmView
{
...........
};
<<<<<<<<<EXEView.Cpp>>>>>>>>>
#include "stdafx.h"
#include "EXEView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
IMPLEMENT_DYNCREATE(CInfoEngineView, CmView)
.......................
error:
error C2039: 'classCmView' : is not a member of 'CmView'
see declaration of 'CmView'
error C2065: 'classCmView' : undeclared identifier
why......
thank you:)