如何让non-unicode实现的VC程序在非中文环境下显示中文
有一个基于MFC的应用程序,由于API的原因不能使用unicode编译
现在需要实现在非中文环境下显示中文字符,有什么比较好的思路么?
[解决办法]
不能使用unicode编译也可以用unicode字符串啊,界面也可以用WIDE CHAR的接口创建和修改文字内容啊。
[解决办法]
write a multiple tier application. compile with Unicode enabled in the UI layer.
[解决办法]
这样可以吗?
直接使用API:
rawTextW(
IN HDC hDC,
IN LPCWSTR lpString,
IN int nCount,
IN OUT LPRECT lpRect,
IN UINT uFormat);
[解决办法]
用钩子试试,所有的DrawTextA改成DrawTextW调用