Xtreme toolkit pro installation and compilation details

Source: Internet
Author: User

This library is very useful in VC. With the help of a good friend, you can quickly install it. Here are the detailed steps:

1.Download codejock. Xtreme. toolkit. Pro. v13.2.1 first

2.Next step during installation

3.After the installation is complete, a new configuration window will be displayed. Here you can check whether you need to select the Unicode version.

Or DLL or static Lib. We recommend that you do not need to include DLL when using Lib for release.

4.After the selection is complete, a cmd window will pop up to start compiling by yourself. The process is from 5 minutes to 10 minutes.

5.After compilation, You can compile the example. Make the settings before compilation and select from project> setting> General> Microsoft Foundation Classes.

Use MFC in a static libraryYou can compile it.

 

    • Static link considerations

1)ProgramStatic link to xtp when dynamic link to the MFC Library

2) When the program is dynamically static to the MFC library, it is statically linked to the xtp

In either case, you can configure _ xtp_staticlink to enable static connections. Remember to include the following statement in the RC2 file of your project during static connections, otherwise, an exception occurs when calling resources in xtp.

# Include <xttoolkitpro. rc>

During toolkit installation, compilation of the corresponding Lib is very slow. At that time, I only generated a static library.They are:

Toolkitpro1321vc80s. Lib

Toolkitpro1321vc80sd. Lib

Toolkitpro1321vc80su. Lib

Toolkitpro1321vc80sud. Lib

S indicates static, d Indicates debug, and u indicates Unicode,

//Three options are available during compilation.

A) as DLL

B) as static library, for using MFC as DLL

C) as static library, for using MFs as static library.

//I chose B, so the above libs are generated: S. Lib, SD. Lib, Su. Lib, Sud. Lib.

//If C is selected, DS. Lib, DSD. Lib, DSU. Lib, and dsud. Lib are generated. // The preceding D indicates using MFC as DLL.

//If a is selected, "". dll, D. dll, U. dll, Ud. dll.

 

Assume that the Xtreme toolkit is installed in: C: \ Program Files.

For example, the following directory exists: C: \ Program Files \ codejock SOFTWARE \ MFC \ Xtreme toolkitpro v13.2.1 \ Source

Modify the following settings in the project properties:

A) C/C ++ |General | Add the inclusion directory and add "C: \ Program Files \ codejock SOFTWARE \ MFC \ Xtreme toolkitpro v13.2.1 \ source"

B)Linker | General | additional library Directory: Add "C: Program Files \ codejock SOFTWARE \ MFC \ Xtreme toolkitpro v13.2.1 \ Lib \ vc80"

C)Linker | input | ignore a specific library and add "libcd. lib ". If you follow the document, you also need to ignore more. I entered this first.

D)Resource | General | Add the include directory and add "C: \ Program Files \ codejock SOFTWARE \ MFC \ Xtreme toolkitpro v13.2.1 \ source"

ThenCodeYou must make the following changes:

A)Add # include "xttoolkitpro. H" at the end of stdafx. h"

B)Add at the end of XX. RC2# Include "xttoolkitpro. RC"

C)Then, add the inheritance relationship to the mainfrm. H Statement:

Class cmainframe: Public cxtpmdiframewnd

Then the compilation is successful.

 

Note: Do not add any Xtreme toolkit to the project. Previously, I added xtpresource. H, xttoolkitpro. H, and xttoolkitpro. RC to the project, and reported cvt1100: duplicate resource, type: bitmap,... error.

 

    • Considerations for dynamic compilation

In fact, it is similar to static compilation. For static compilation, refer to my previous "Xtreme toolkit static compilation considerations", but copy the. dll of Xtreme toolkit to system32. Or put it in the output directory of exe.

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.