0

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

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by GloriousEremite
0

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?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.