| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 459 人关注过本帖
标题:请教个问题
只看楼主 加入收藏
rxgmoral
Rank: 1
等 级:新手上路
帖 子:45
专家分:0
注 册:2006-1-18
收藏
 问题点数:0 回复次数:0 
请教个问题

请教个问题

****************静态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这个类呢?
这个问题困扰很长时间,如何解决这个问题
谢谢:)

搜索更多相关主题的帖子: comment include public 
2006-07-11 17:40
快速回复:请教个问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.010346 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved