Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

adding a lib into the exe body

Posted on 2003-11-19
3
Medium Priority
?
396 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
  • 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 150 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Integration Management Part 2

772 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