Solved

adding a lib into the exe body

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.

679 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