请教个问题
****************静态DLL.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()
{
}
******************静态EXE文件******************
这里是继承DLL里的CmView里
#pragma once
#include "CmView.h"
#pragma comment(lib,"dll.lib")
class EXEView : public CmView
{
...........
};
#include "stdafx.h"
#include "EXEView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
IMPLEMENT_DYNCREATE(CInfoEngineView, CmView)
.......................
报错如下:
error C2039: 'classCmView' : is not a member of 'CmView'
see declaration of 'CmView'
error C2065: 'classCmView' : undeclared identifier
为什么EXE里不能继承DLL里的CmView这个类呢?
这个问题困扰很长时间,如何解决这个问题
谢谢:)