如何defualtly定义所有WINAPI对待字符串作为UNI code? [英] how to defualtly define all the winapi to treat strings as UNICODE?

查看:226
本文介绍了如何defualtly定义所有WINAPI对待字符串作为UNI code?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio,有没有办法来定义WINAPI的所有功能,把所有的字符串作为UNI code?

Using visual studio, is there a way to define all the function of the winapi to treat all the strings as UNICODE?

推荐答案

您必须使用 preFIX您所有的Uni code字符串。一种非易失prefixed字符串,例如你好,始终是一个字符基于字符串。有在语言没有捷径,将对待这样一个字符串作为宽字符的字符串。

You have to use the L prefix for all your Unicode strings. A non-prefixed string, e.g. "hello", is always a char based string. There is no shortcut in the language that would treat such a string as a wide character string.

这篇关于如何defualtly定义所有WINAPI对待字符串作为UNI code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆