1:正则DELL和其他的DELL有什么不同的地方?
2:我建了个类 但编译的时候出现了这个问题:
class CModArt : public CObject
{
public:
extern "C" void PASCAL EXPORT ModArtClearDrawing(CObArray *poaLines);
extern "C" void PASCAL EXPORT ModArtSerialize(CArchive &ar,
CObArray *poaLines);
extern "C" void PASCAL EXPORT ModArtDraw(CDC *pDC,CObArray *poaLines);
extern "C" void PASCAL EXPORT ModArtNewDrawing(CRect pRect,
CObArray *poaLines);
void NewLine(CRect pRect,CObArray *poaLines);
void SetRect(CRect rDrawArea);
CObArray *poaLines;
CRect pRect;
CModArt();
virtual ~CModArt();};
它的提示是
d:\wh\externdell\modart.h(15) : error C2059: syntax error : 'string'
d:\wh\externdell\modart.h(15) : error C2238: unexpected token(s) preceding ';'
d:\wh\externdell\modart.h(16) : error C2059: syntax error : 'string'
d:\wh\externdell\modart.h(17) : error C2238: unexpected token(s) preceding ';'
d:\wh\externdell\modart.h(18) : error C2059: syntax error : 'string'
d:\wh\externdell\modart.h(18) : error C2238: unexpected token(s) preceding ';'
d:\wh\externdell\modart.h(19) : error C2059: syntax error : 'string'
d:\wh\externdell\modart.h(20) : error C2238: unexpected token(s) preceding ';'
DD:\wh\ExternDell\ModArt.cpp(128) : error C2065: 'poaLines' : undeclared identifier
不知是什么原因!
100分献上!!
2:我建了个类 但编译的时候出现了这个问题:
class CModArt : public CObject
{
public:
extern "C" void PASCAL EXPORT ModArtClearDrawing(CObArray *poaLines);
extern "C" void PASCAL EXPORT ModArtSerialize(CArchive &ar,
CObArray *poaLines);
extern "C" void PASCAL EXPORT ModArtDraw(CDC *pDC,CObArray *poaLines);
extern "C" void PASCAL EXPORT ModArtNewDrawing(CRect pRect,
CObArray *poaLines);
void NewLine(CRect pRect,CObArray *poaLines);
void SetRect(CRect rDrawArea);
CObArray *poaLines;
CRect pRect;
CModArt();
virtual ~CModArt();};
它的提示是
d:\wh\externdell\modart.h(15) : error C2059: syntax error : 'string'
d:\wh\externdell\modart.h(15) : error C2238: unexpected token(s) preceding ';'
d:\wh\externdell\modart.h(16) : error C2059: syntax error : 'string'
d:\wh\externdell\modart.h(17) : error C2238: unexpected token(s) preceding ';'
d:\wh\externdell\modart.h(18) : error C2059: syntax error : 'string'
d:\wh\externdell\modart.h(18) : error C2238: unexpected token(s) preceding ';'
d:\wh\externdell\modart.h(19) : error C2059: syntax error : 'string'
d:\wh\externdell\modart.h(20) : error C2238: unexpected token(s) preceding ';'
DD:\wh\ExternDell\ModArt.cpp(128) : error C2065: 'poaLines' : undeclared identifier
不知是什么原因!
100分献上!!
解决方案 »
- 求activeX 例程:图片简单操作,比如loadimage, zoomin/zoomout,图片平移,等
- 如何解决 vs 2005 / vc8 不选择 unicode 编译出的程序没有xp风格的问题
- FAR修饰符
- 如何实时显示 程序运行的时间!!!!!!
- *转让书刊
- 请问MFC(Microsoft Foundation Classes)的具体含意?
- 多个进程如何同步访问同一个驱动的代码
- 如何将复制的位图(比如在word中复制的位图)粘贴到当文档视图中显示
- 在使用M$和或其他数据库时,在SQL语句里,怎么样转换各种数据类型?如:日期转字符、字符转日期等!
- 100分求解,如何编程序改变位图的画质?
- 制做安装包时怎样删除指定的目录?
- 我做的一个电子图书阅读软件,功能很多。。。需要的请举手!
2、.cpp文件头部中加入
#include <afxcoll.h>
谢谢了!
其他地方用String 是什么意思呀!!!
帮帮忙!!!!
用这种声明方式试试
void fun();
然后在.def文件中加入 fun就可以了