Solved

adding a lib into the exe body

Posted on 2003-11-19
3
345 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 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now