Solved

adding a lib into the exe body

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 87
Define unique primary key 9 93
either24  challenge 19 97
canBalance challenge 34 86
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

803 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