Guides & Tutorials (beta)

Statically link with Toolkit Pro when also statically linked to MFC

by Kirk Stowell Visual C++ Created on 11/16/2007  |  Updated on 07/31/2024 0/5 ( 0 votes )

Follow these steps to statically link with the Toolkit Pro Version:

  1. Change your project settings to “Use MFC in a Static Library”. This is found on the “General” tab in your project settings dialog.
  2. Change your “C/C++ Code Generation” to use either “Multithreaded” or “Debug Multithreaded” run-time library.  For release builds use the “Multithreaded” (non DLL) run-time library.  For debug builds use “Debug Multithreaded” (non DLL) run-time library.
  3. Some libraries are incompatible when statically linking to MFC.  On the link tab under input settings you will need to ignore the following libraries.

    For “Multithreaded” add the following to the “Ignore libraries” list: libc.lib, msvcrt.lib

    For “Debug Multithreaded” add the following to the “Ignore libraries” list: libcd.lib, msvcrtd.lib

    See Linker Tools Warning LNK4098 in MSDN for more details.
  4. Add the following line to your application's .rc2 file.  This will link in the toolkit resources so they are available to your application.

    Toolkit Pro:
    #include <XTToolkitPro.rc>
    
    Command Bars:
    #include <XTCommandBarsPro.rc>
    
    Docking Pane:
    #include <XTDockingPanePro.rc>
    
    Property Grid:
    #include <XTPropertyGridPro.rc>
    

User Comments

No comments yet, sign in to comment.

Secure Transactions

Online transactions are secure and protected.


Ssl seal 1
This site is protected by Trustwave's Trusted Commerce program
CompliAssure Secured

Money Back Guarantee

If you are not 100% happy with your purchase within 30 days, you can return it for any reason. Your satisfaction is our priority!


Satisfication Guarantee

Contact sales@codejock.com for more details.