在非MFC中使用CString
2014-12-23 09:25
295 查看
参考:http://wangeleven.blog.163.com/blog/static/2437003920071134263366/
http://wangeleven.blog.163.com/blog/static/2437003920071134263366/
测试环境:VC2010
1、在stdafx.h
// Windows 头文件:
#include <windows.h> 之前加入 #include <afx.h>
2、dllmain.cpp
加入:
////////////////////////////
//使用MFC库 http://blog.csdn.net/lys07962000/article/details/42098559
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define new DEBUG_NEW
// global data
// The following symbol used to force inclusion of this module for _USRDLL
#ifdef _X86_
extern "C" { int _afxForceUSRDLL; }
#else
extern "C" { int __afxForceUSRDLL; }
#endif
///使用MFC库////////////////////////////////////////
3、工程属性--》C/C++--》代码生产--》运行库 改为:多线程调试(/MTD)
http://wangeleven.blog.163.com/blog/static/2437003920071134263366/
测试环境:VC2010
1、在stdafx.h
// Windows 头文件:
#include <windows.h> 之前加入 #include <afx.h>
2、dllmain.cpp
加入:
////////////////////////////
//使用MFC库 http://blog.csdn.net/lys07962000/article/details/42098559
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define new DEBUG_NEW
// global data
// The following symbol used to force inclusion of this module for _USRDLL
#ifdef _X86_
extern "C" { int _afxForceUSRDLL; }
#else
extern "C" { int __afxForceUSRDLL; }
#endif
///使用MFC库////////////////////////////////////////
3、工程属性--》C/C++--》代码生产--》运行库 改为:多线程调试(/MTD)
相关文章推荐
- 非MFC工程使用CString
- 如何在Console程序中使用MFC类(例如CString)
- 在非MFC项目中使用CString
- MFC中CString的Format方法使用技巧
- 使用C++编写类似MFC的CString,部分功能,重新复习使用操作符重载
- VS2008下非MFC工程使用CString类库
- MFC中CString的Format方法使用
- VC程序在非MFC中使用CString
- 【MFC】将CString类型的十六进制数字,转换成整形(在使用Unicode字符集的情况)
- MFC中CString的使用总结
- 在Non-Mfc下使用CString
- MFC中CString的Format方法使用技巧
- MFC CString 查找函数使用的三个失误
- MFC中的cstring成员函数使用
- WinCE的非MFC程序中使用CString
- 非MFC中使用Cstring
- MFC AtlMap<CString, ?>使用
- MFC中CString的Format方法使用技巧
- MFC CString的使用
- MFC的CString的find的使用