MFC 多语言系统的制作
对于软件系统,我们可以常看到其支持做种语言系统,比如中文、英文等等。那么在MFC中如何实现呢?其实很简单。制作流程如下。一下以最简单的对话框为列做个示范,大系统同样是该流程。(这里IDE使用 VC6.0 )
1、创建简单的对话框应用程序Dlg,同时添加Static文本控件。

2、创建动态库项目S_Chinese(空项目则可),然后把步骤一中所说的项目下的res文件夹、.rc文件、.resource.h、stdafx.h、stdafx.cpp文件拷贝到创建的动态库项目中,同时添加进工程,如下图所示

并将要修改的资源在此处进行修改。

3、S_Chinese.h 和S_Chinese.cpp文件可以直接从上面对话框项目的Dlg.h Dlg.cpp 并做一下修改便可。
Dlg.h
// Dlg.cpp : Defines the class behaviors for the application.//#include "stdafx.h"#include "Dlg.h"#include "DlgDlg.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// CDlgAppBEGIN_MESSAGE_MAP(CDlgApp, CWinApp)//{{AFX_MSG_MAP(CDlgApp)// NOTE - the ClassWizard will add and remove mapping macros here.// DO NOT EDIT what you see in these blocks of generated code!//}}AFX_MSGON_COMMAND(ID_HELP, CWinApp::OnHelp)END_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CDlgApp constructionCDlgApp::CDlgApp(){// TODO: add construction code here,// Place all significant initialization in InitInstance}/////////////////////////////////////////////////////////////////////////////// The one and only CDlgApp objectCDlgApp theApp;/////////////////////////////////////////////////////////////////////////////// CDlgApp initializationBOOL CDlgApp::InitInstance(){AfxEnableControlContainer();// Standard initialization// If you are not using these features and wish to reduce the size// of your final executable, you should remove from the following// the specific initialization routines you do not need.#ifdef _AFXDLLEnable3dControls();// Call this when using MFC in a shared DLL#elseEnable3dControlsStatic();// Call this when linking to MFC statically#endifHINSTANCE hInst;hInst=LoadLibrary("S_Chinese.dll");if(hInst!=NULL)AfxSetResourceHandle(hInst);CDlgDlg dlg;m_pMainWnd = &dlg;int nResponse = dlg.DoModal();if (nResponse == IDOK){// TODO: Place code here to handle when the dialog is// dismissed with OK}else if (nResponse == IDCANCEL){// TODO: Place code here to handle when the dialog is// dismissed with Cancel}// Since the dialog has been closed, return FALSE so that we exit the// application, rather than start the application's message pump.return FALSE;}到这里便完成了多语言系统的制作,例子代码如下http://download.csdn.net/detail/wangweitingaabbcc/4578441