Tri-lingual project.

This is what I have done so far:
Create a new project.
W32 Dynamaic Link Library (Project Name: ChineseRes.dll). A simple dll project. Finish.

Then, I copied all these from my program(which is in English) files over to the ChineseRes.dll directory.
a. Res directory
b. All my bitmaps
c. Resource.h
d. Itss.rc

Then in my ChineseRes.dll project, I included the Itss.rc file. After that, I open up all the dialog boxes and change the interface to the language I desire, which is Chinese and save and compile the simple dll project.

After that, I copied the dll that has already been compiled to my Windows/System directory.

In my actual program(the existing one, which is in English), I did some alterations to the code, as in what "proskig" told me to do, which is:

I add an HINSTANCE member variable to the application's CWinApp derived class.

CWinApp::InitInstance definition:
ASSERT(m_hChineseResDLL !=NULL);

After that,
int CMyApp::ExitInstance()
  return CWinApp::ExitInstance();

OK, that is a bit long story there.

Anyway, there is just one big problem. How about the MessageBox? How do I change the language in the message box itself, since it is only found in the code not in the resource file or in the string table.

I tried this method, which is: I made another copy of my actual program, and I changed the UI one by one and entered all the text in the messagebox to the string table and replaced the AfxMessageBox("Just a message");
where 61447 is the value from the string table. Is that the correct way of doing?

And, how about the language from the
SetWindowsText? Can I use the same method as in the AfxMessageBox?
object.SetWindowsText(61447). But, this does not work.

Please help. Can you show me a correct way of doing this. The way I used is a little weird, isn't it?

Thank you.

If you do not understand what I have written here, I can be contacted at:

Please help. I have until somewhere third week of May to complete this assignment. I know, all these multilingual stuff takes a really really long time to complete.

Who is Participating?
CJ_SConnect With a Mentor Commented:
SetWuindowText needs a HWND, with MAKEINTRESOURCE you get a resource type returned.

Anywhere where you put the integer, you put the MAKEINTRESOURCE
I don't exactly see what ya wanna do, but try MAKEINTRESOURCE(61447)
cheeonnAuthor Commented:
Is that the way to put the SetWindowText message in the resource file?
But, how do I go about doing that? Where do I put the MAKEINTRESOURCE(61447)?
Thank you.
The new generation of project management tools

With’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

You will need the LoadString API:

int LoadString(

    HINSTANCE  hInstance,      // handle of module containing string resource
    UINT  uID,      // resource identifier
    LPTSTR  lpBuffer,      // address of buffer for resource
    int  nBufferMax       // size of buffer


Points to the buffer to receive the string.


Specifies the size of the buffer in bytes (ANSI version) or characters (Unicode version). The string is truncated and null terminated if it is longer than the number of characters specified.


LoadString(m_hChineseResDLL, MAKEINTRESOURCE(61447), lpbuffer, buffermax);

Replace lpbuffer and buffermax with arguments you find appropriate. This should solve your problem.
cheeonnAuthor Commented:
Adjusted points from 20 to 23
cheeonnAuthor Commented:
Thank you for the guidance. I have completeted the project successfully.
Thank you so much.
All Courses

From novice to tech pro — start learning today.