|
|
通过使用unicode编译,软件可以适应多种情况,如何在自己的工程中添加这两种编译方式呢?下面是一个简单的步骤. b X) F" M' w/ l6 ]! m5 L
4 H U/ i; `& l/ m' } 1、新建一个工程;9 K6 b }2 a }! U+ c
2、选择“Build->Configurations”菜单
$ \: f$ ?* s. F; i8 E ` 3、点击“Add”按钮,添加“Unicode Debug”-拷贝“win32 Debug”配置
, P! S8 d; S& v. c8 M 添加“Unicode Release”-拷贝“win32 Release”配置 ,然后点击“OK” s, G2 n1 B) f) U. |3 a
4、选择“Project->Setting”菜单
3 [; N# Y" a2 ?1 w) J4 X 5、切换到“General ”TAB页+ S3 F) A& T/ U# p& j& P+ B6 _
6、修改“Win32 Unicode Debug”的Intermediate Files和Output Files为DebugU 5 w8 N$ y/ j6 l5 X3 a- `
7、修改“Win32 Unicode Release”的Intermediate Files和Output Files为ReleaseU 9 D0 R; y5 G- t
8、切换到“C++ ” Tab页
- n' q4 Q! |0 f' T- z4 u 9、从下拉列表框中选择“Preprocessor”
8 l7 F$ {4 J* Y; ^& j# k! Z 10、为“Win32 Unicode Debug”和“Win32 Unicode Release”分别添加_UNICODE和UNICODE variables |
|