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:)

I'm not too familiar with that MFC specific stuff (like AFX_NOVTABLE and IMPLEMENT_DYNCREATE) but I don't think I see where your errors are coming from. Which line are they pointing to?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.