Solved

adding a lib into the exe body

Posted on 2003-11-19
3
384 Views
Last Modified: 2013-11-20
Hi,
   hi i work on a non MFC project under the VC 6.00. I use a lib that corresponds into a dll and i want the lib or dll to be included into my exe code so i will not need to install the dll into the target PC. Any way to do that?
0
Comment
Question by:ttsenis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Expert Comment

by:SteH
ID: 9780107
You have ot statically link the DLL to your code. It blows up the size of your exe but its a single file.
0
 

Author Comment

by:ttsenis
ID: 9782784
how do i statically link the DLL . Through a precompile directive ? ,or an API like loadmodule loadlibrary etc...?
0
 
LVL 13

Accepted Solution

by:
SteH earned 50 total points
ID: 9789114
Sorry, mixed up the loading of the library with its linking. The lib file for a DLL is only needed for loading it. To statically link you have to create a static link library (.lib as well). Was it you who has developed the DLL? Then the help (DLLs for beginners) can help you how to convert a project from DLL to lib even the text is for the other way.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question