在非MFC中使用CString
来源:互联网 发布:东非大裂谷 知乎 编辑:程序博客网 时间:2024/05/22 00:42
参考: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)
0 0
- 在非MFC中使用CString
- 在非MFC项目中使用CString
- 非MFC中使用Cstring
- 在非MFC环境中使用CString、使用_bstr_t
- VC程序在非MFC中使用CString
- 在非mfc程序中使用CString类
- VC程序在非MFC中使用CString
- VC程序在非MFC中使用CString
- VC程序在非MFC中使用CString
- 在非MFC程序中引用CString
- 在非MFC程序中引用CString
- CString在非MFC中应用
- 在非MFC程序中引用CString
- 在非MFC程序中引用CString
- 在非MFC程序中引用CString
- 在非MFC程序中引用CString
- 在非MFC程序中引用CString
- 在非MFC程序中引用CString
- ant——安装与配置
- 【C#】遍历本机IPV4地址
- WP-Syntax WordPress高亮插件使用方法
- 访问通信录中的联系人和添加联系人
- String cannot be resolved to a type - The method getContextPath() from the type HttpServletRequest r
- 在非MFC中使用CString
- Oracle 工具集合
- Android系统关机或重启的几种实现方式 .
- 算法与数据结构面试题(14)-在数组中查找2个数的和为已知数
- shell--正则表达式
- 编程参数列表定义
- AsyncTask的使用
- C++内存溢出查询方法
- trie树