Xtreme Toolkit Pro Several Chinese issues when statically linking to MFC

Source: Internet
Author: User

Xtreme Toolkit Pro15.3.1 (previous version may also have this problem) after a Chinese-language package, if you choose to statically link to MFC, create a new project, (1) If it is a single document project, run the program with an error (2) If it is a multi-document project, do "open", "save" function, errors can also occur.

Chinese Package Description: Engineering needs in the project right--> Property-> Resource-> General-> Preprocessor definition, add ", Afx_targ_chs,afx_resource_dll" prove invalid in this version

After research, in the xxx.rc file (XXX is the project name), the final location code:

             #pragma code_page (936)
              #include "res\xxx.rc2"  //Non-Microsoft Resources edited by Visual C + +
             #include "afxres.rc"         //Standard components
              #include "afxprint.rc"       //print/Print Preview Resource
              #endif
    adjust to

#pragma code_page (936)
#include "afxres.rc"//Standard components
#include "afxprint.rc"//print/Print preview resources
Resources edited #include "RES\XXX.RC2"//Non-Microsoft Visual C + +
#endif

Other:

After the Chinese, some controls still cannot display Chinese because the control has a separate resource file, simply add the following statement in the Xxx.rc2 file

#define _xtp_resource_language ZH_CN

In fact, this is the standard of the Chinese process of the software.

Some UI effects, such as xtpListBoxOffice2007, cannot be displayed under normal circumstances, and you need to configure the following statements in the resource file Xxx.rc2

#include "styles\office2007\office2007.rc"

The address of the other resource file is viewed in the sample project.

--------------------------------------------------------------------

The following is attached to the description of Chinese:

1, the Chinese version of the comparison of v12.0.0 almost unchanged, only the original code of 3 Chinese resources made an accurate change.
2, the Chinese when the source, Utils, workspace three folders copied to x:\. \xtreme Toolkitpro v13.2.1 Directory
4, the Workspace\toolkitpro under the TOOLKITPRO.RC.CHS renamed to overwrite the original toolkitpro.rc file (note back up the original file)
3, the implementation of Xtreme Toolkitpro Deploy.exe Program (The Windows Program menu shortcut is "Deployment Wizard")
4, the process of Chinese to see the following articles
Http://www.cnblogs.com/SummerHeart/archive/2008/05/06/1185758.html


The first part: The Chinese-language guide and the increase can generate all the Chinese resources of the project.
Copy the catalog VC to Visual Studio 2005, such as: D:\Program Files\Microsoft Visual Studio 8\. This step allows the new Xtreme Toolkit Pro Project Wizard interface to be Chinese, and the new project into the "Application type" interface when the resource language more than the "Chinese (China)" option, that is, you can create a complete Chinese resource file.

The second part: make the interface library of Chinese
Because the Xtreme Toolkit Pro Interface Library has been compiled, the repository defaults to English, so it is not very cool to have English in the Chinese software we have developed, so we need to do some minor surgery on the interface library. Oh.
is probably the original company in the text in the resources of some of the omissions, there are very few string is still English, so this by the way also will be added to these resources. As a result, the following 1 steps are possible.
1, first copy the directory source to the Xtreme Toolkit Pro installation directory, such as D:\Program files\codejock software\mfc\xtreme Toolkitpro v11.2.1\. This is a Chinese resource database of some of the repair of Chinese.
2. Open the Workspace\toolkitpro directory in the Xtreme Toolkit Pro installation directory, open the text (or open the code in the IDE) toolkitpro.rc file,
Add a row in the following location.
/////////////////////////////////////////////////////////////////////////////
中文版 (U.S.) resources
#define _xtp_resource_language ZH_CN//*8*8* Right, that's the definition of the sentence.

Also find the following line:
LANGUAGE Lang_english, Sublang_english_us
Change to-->
LANGUAGE Lang_chinese, sublang_chinese_simplified
Then open the interface Library project to regenerate the various versions of the dynamic library, all of the Chinese OK.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.