VC6 UNICODE

| |
[不指定 2008/10/23 17:34 | by song ]
-:如何在vc6中进行unicode编译  
 1.菜单Build–>Configurations–>Add,添加一个Unicode   Debug。  
 2.菜单Build–>Set   Active   Configuration,选择Win32   Unicode   Debug。  
 3.菜单Project–>Settings->C/C++属性页->Category中,选择Preprocessor,在Preprocessor   definitions中添加   _UNICODE。  
 4.菜单Project–>Settings->Link属性页->Category选中,选择Output,在Entry-   point   symbol中写入wWinMainCRTStartup。如不执行该步骤,会出现错误”unresolved   external   symbol   _WinMain@16“。  
 二:把char全换成TCHAR  
 所有的字符串用_T()宏  
 比如  
 char   sz="aaa";  
 改成  
 TCHAR   sz=_T("aaa");  
 2.修改字符串函数:  
 如strlen改成_tcslen  
 也可以改成lstrlen  
Tags: , ,
VC&C# | 评论(0) | 引用(0) | 阅读(240)
打開更多相關 VC6 UNICODE 的信息
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 如果无法察看请点击更换图片
请输入上面的字母,不区分大小写