Print Page | Close Window

How to statically link ToolkitPro DLL wth project?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6178
Printed Date: 24 June 2024 at 7:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to statically link ToolkitPro DLL wth project?
Posted By: aamirzia
Subject: How to statically link ToolkitPro DLL wth project?
Date Posted: 22 January 2007 at 12:57am
Hi All,
 
How can i link the DLL file "ToolkitPro1031vc71.dll" statically with my project so that i dont have to ship this file along with my project? Doesn't matter if the size of my executable increases.
 
thanx All
 
 
@@mir



Replies:
Posted By: mgampi
Date Posted: 22 January 2007 at 4:40am
Question:
How do I statically link with Xtreme Toolkit Pro and when statically linked to MFC?
Answer:
Follow these steps to statically link with the Xtreme Toolkit Professional 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, libcd.lib, libcmtd.lib, msvcrtd.lib
    For “Debug Multithreaded” add the following to the “Ignore libraries” list:
    libc.lib, libcmt.lib, msvcrt.lib, libcmtd.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.
    Xtreme Toolkit Pro:
    #include <XTToolkitPro.rc>
    
    Xtreme Suite:
    #include <XTSuitePro.rc>
    Xtreme Command Bars:
    #include <XTCommandBarsPro.rc>
    Xtreme Docking Pane:
    #include <XTDockingPanePro.rc>
    Xtreme Property Grid:
    #include <XTPropertyGridPro.rc>


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: Sowmya
Date Posted: 14 January 2008 at 1:36pm
Hi Martin,
This post took helped me a lot.
But now I am getting an error "error C3861: AfxLoadLibrary identifier not found"
Do I have to change any settings other than these ?
 
Thanks
Sowmya



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net