找回密码
 注册
搜索
查看: 5184|回复: 1

[收藏]为vc工程添加Unicode Debug和Unicode Release

[复制链接]
发表于 2005-4-8 13:03:21 | 显示全部楼层 |阅读模式
  通过使用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
 楼主| 发表于 2005-4-8 15:09:54 | 显示全部楼层
还要在link中,Category选output,将Entry-Point Symbol设为wWinMainCRTStartup
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|宁德市腾云网络科技有限公司 ( 闽ICP备2022007940号-5|闽公网安备 35092202000206号 )

GMT+8, 2026-6-18 06:52 , Processed in 0.017795 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表