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分献上!!

解决方案 »

  1.   

    你想导出类成员函数吗,若这样,应该用扩展dll, 而且你其他地方用了string吗
      

  2.   

    1、将.h文件贴出来,你的出错全部是在.h文件里面出的。
    2、.cpp文件头部中加入
      #include <afxcoll.h>
      

  3.   

    to  oldworm(oldworm)   将。h文件贴出来是什么意思?
    谢谢了!
      

  4.   

    to:ljan(冰魂) 
    其他地方用String 是什么意思呀!!!
    帮帮忙!!!!
      

  5.   

    extern "C" __declspec(dllexport) int asciitolong(char *sData, PLONG plData);
    用这种声明方式试试
      

  6.   

    上面错了
    void fun();
    然后在.def文件中加入 fun就可以了