有一个基于MFC的应用程序,由于API的原因不能使用unicode编译
现在需要实现在非中文环境下显示中文字符,有什么比较好的思路么?

解决方案 »

  1.   

    不能使用unicode编译也可以用unicode字符串啊,界面也可以用WIDE CHAR的接口创建和修改文字内容啊。
      

  2.   

    如果是在windows中,最好还是装中文语言包
      

  3.   

    dick_song(卡菲的伙伴) ,可以给个例子么,比如如何改变一个Edit Box的文字,让其在非中文环境下显示中文。我试验的结果是都是显示方块。
      

  4.   

    思路本身就有问题。
    不管是否是unicode, 没有中文语言包,在其它语言的操作系统上都不支持中文
      

  5.   

    write a multiple tier application. compile with Unicode enabled in the UI layer.
      

  6.   

    在有语言包的情况下是比较容易实现的,但是要求是在只有字库的情况下工作。Multiple layer is a good solution, but this will greatly affect the current applciation architecture, a great workload and too risky.
      

  7.   

    这样可以吗?
    直接使用API:
    rawTextW(
        IN HDC hDC,
        IN LPCWSTR lpString,
        IN int nCount,
        IN OUT LPRECT lpRect,
        IN UINT uFormat);
      

  8.   

    用钩子试试,所有的DrawTextA改成DrawTextW调用