这是怎么回事儿呢?
1 只有label和menu等控件显示乱码为???之类的;
2 我有两个项目,manage和test,manage这个项目就没有乱码问题,但test这个项目就有这个问题。后来我又新建了一个项目,把test里面的部分源文件加入到新的项目中,开始还没事儿,后来就变的还是乱码了。
3 test项目以前也没事儿,就在前天下午吧,突然就这样了。我也不知道哪儿设置的有问题。
4 对了,test项目中的tree之类的控件就没有中文乱码问题。哪位仁兄或仁姐帮忙解决解决给点儿提示。

解决方案 »

  1.   

    以前写过一个多语言乱码的解决方法所以我们就可以考虑为我们这个软件在其它的系统运行时将该软件系统的进程的区域语言设置为我们想要的 
    这样就不会出来乱码了 
    幸运的是MS为大家提供了这样一个函数: 
    SetThreadLocale 
    SetThreadLocale 
    The SetThreadLocale function sets the calling thread's current locale.  BOOL SetThreadLocale ( 
      LCID Locale   // locale identifier 
    ); 
    Parameters 
    Locale  
    [in] Specifies the new locale for the calling thread. This parameter can be a locale identifier created by the MAKELCID macro, or one of the following predefined values. Value Meaning  
    LOCALE_SYSTEM_DEFAULT Default system locale.  
    LOCALE_USER_DEFAULT Default user locale.  
    For more information, see Locales.  Return Values 
    If the function succeeds, the return value is a nonzero value.  If the function fails, the return value is zero. To get extended error information, call GetLastError.  Res 
    When a thread is created, it uses the system default thread locale. The system reads the system default thread locale from the registry when the system boots. This system default can be modified for future process and thread creation using Control Panel's International application.  The SetThreadLocale function affects the selection of resources that are defined with a LANGUAGE statement. This affects such functions as CreateDialog, DialogBox, LoadMenu, LoadString, and FindResource, and sets the code page implied by CP_THREAD_ACP, but does not affect FindResourceEx.  Windows 2000/XP: Do not use SetThreadLocale to select a UI language. To select the proper resource that is defined with a LANGUAGE statement, use FindResourceEx. Requirements  
      Windows NT/2000/XP: Included in Windows NT 3.1 and later. 
      Windows 95/98/Me: Unsupported. 
      Header: Declared in Winnls.h; include Windows.h. 
      Library: Use Kernel32.lib. 
    具体用法朋友们请直接看上面的吧,应该都能懂; 
    二:用delphi版某位前辈写的一套组件 好像是TNT,不过在有的时候不好用.