哪位老大知道为什么老是提示我Cstring 未定义?

解决方案 »

  1.   

    不是Cstring是CString
      

  2.   

    ///////source code
    #ifndef _ADO_H_
    #define _ADO_H_#if _MSC_VER >= 1000
    #pragma once
    #endif // _MSC_VER >= 1000
    //引入ado库
    #import "C:\Program Files\Common Files\System\ADO\msado15.dll" \
    no_namespace  rename("EOF", "adoEOF"),rename("BOF","adoBOF") CString IntToStr(int nVal); CString LongToStr(long lVal);
    我是在vc++ 完全自学手册上荡下的 水晶ERP源程序。 我觉得应该是没配置好MFC设置。但一时找不出。
      

  3.   

    ///////source code 
    #ifndef _ADO_H_ 
    #define _ADO_H_ #if _MSC_VER >= 1000 
    #pragma once 
    #endif // _MSC_VER >= 1000 
    //引入ado库 
    #import "C:\Program Files\Common Files\System\ADO\msado15.dll" \ 
    no_namespace  rename("EOF", "adoEOF"),rename("BOF","adoBOF") CString IntToStr(int nVal); CString LongToStr(long lVal); 这些代码在那个文件中
      

  4.   

    #ifndef __AFXWIN_H__
    #error include 'stdafx.h' before including this file for PCH
    #endif
    应该'stdafx.h' 
      

  5.   

    是不是项目属性里你改成多字节字符试一下,要不就在定义的CString 对象前加上_T(对象)