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

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

[复制链接]
发表于 2005-4-8 13:03:21 | 显示全部楼层 |阅读模式
  通过使用unicode编译,软件可以适应多种情况,如何在自己的工程中添加这两种编译方式呢?下面是一个简单的步骤
7 c# I% Z5 k5 y( D# a" V% ~        
+ B0 @4 Z  P# ?, f  h; R        1、新建一个工程;
/ h5 ^" B4 i+ P* f+ N        2、选择“Build->Configurations”菜单
% e" d7 ^* f6 _. s. o! e! }        3、点击“Add”按钮,添加“Unicode Debug”-拷贝“win32 Debug”配置
+ M, l4 Y4 f7 E1 s( n8 l              添加“Unicode Release”-拷贝“win32 Release”配置 ,然后点击“OK”
# A* `1 ^% @1 \2 x9 E        4、选择“Project->Setting”菜单7 Q8 S& @! e: e" y7 T
       5、切换到“General ”TAB页
, o0 d7 r) Z9 P9 r$ S# C. |        6、修改“Win32 Unicode Debug”的Intermediate Files和Output Files为DebugU   ' _5 |: @) z' b" M# _% w3 Z
       7、修改“Win32 Unicode Release”的Intermediate Files和Output Files为ReleaseU   & s( O0 w6 A- @
       8、切换到“C++ ” Tab页% {) G" }0 L* Q4 h2 V7 T; Q2 A
       9、从下拉列表框中选择“Preprocessor”
7 m6 q: t/ d) u) k% @2 ~! n       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, 2025-6-20 07:14 , Processed in 0.039237 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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