- 注册时间
- 2009-11-24
- 最后登录
- 1970-1-1
|
发表于 2010-9-27 23:24:15
|
显示全部楼层
在字符串前面加上L 就能把LPSTR变成LPWSTR了
比如 "Hello, world!" => L"Hello, world!"
还有就是VC中的方法一般都有两种- FunctionW();
- FunctionA();
- #ifdef UNICODE
- #define Function() FunctionW()
- #else
- #define Function() FunctionA()
- #endif
复制代码貌似来晚了,但我这是最直接,也最方便的方法 -_,- |
|