GetPrivateProfileString CString使用这两个涵数需要包涵什么头文件!!!谢谢!!!

解决方案 »

  1.   

    #include <Windows.h>
    #if MFC
    #include <cstringt.h> //or <altstr.h>
    #else 
    #include <altstr.h>
    #endif//
    #if install msdn
    using msdn,you will more effect
    #else
    using google or baidu and so on search engine,you will learn more too.
    #endif
      

  2.   

    GetPrivateProfileString只要包含include Windows.h就行了吧,
    CString这不是函数吧,这不是一MFC类吗?
      

  3.   

    在编Win32 ...... 下显示D:\Program Files\Microsoft Visual Studio\MyProjects\Yiyu\Yiyu.cpp(19) : error C2065: 'CString' : undeclared identifier
      

  4.   

    CString是MFC类,Win32下当然不能用.
      

  5.   

    可以给一份 <cstringt.h> //or <altstr.h> 我吗E-mail [email protected]