|
|
通过使用unicode编译,软件可以适应多种情况,如何在自己的工程中添加这两种编译方式呢?下面是一个简单的步骤1 J; U% i+ z; {! O/ O5 D- i( {
( i6 Q$ i" b6 B0 w/ _; a' U
1、新建一个工程;/ u' N R! \* o1 H0 P
2、选择“Build->Configurations”菜单& s5 l/ h- F9 M, b' R
3、点击“Add”按钮,添加“Unicode Debug”-拷贝“win32 Debug”配置
. t I8 k& O# a' ?8 L' v 添加“Unicode Release”-拷贝“win32 Release”配置 ,然后点击“OK”
1 \5 I5 S7 h& R 4、选择“Project->Setting”菜单) x1 _5 ]& k1 w7 b6 p6 o- A( O
5、切换到“General ”TAB页1 ~( h: Q0 X3 M# r/ S: u0 U ~
6、修改“Win32 Unicode Debug”的Intermediate Files和Output Files为DebugU ! G5 w" m5 P9 P5 K' j, c
7、修改“Win32 Unicode Release”的Intermediate Files和Output Files为ReleaseU
% Y4 X0 M2 }- x 8、切换到“C++ ” Tab页5 i* f7 f* D. [7 S: X$ _: ^- U
9、从下拉列表框中选择“Preprocessor”
1 u, \' v: b. } 10、为“Win32 Unicode Debug”和“Win32 Unicode Release”分别添加_UNICODE和UNICODE variables |
|