Re: Linking DLL Statically

Tech-Archive recommends: Speed Up your PC by fixing your registry



anton bassov wrote:
Hi mate

//////
The process take place when we are linking with the lib file. I just wanted to this using a dll file instead of lib file.
//////

You cannot link with DLL file - this is what .lib files are for. If you don't want to use library file, the easiest thing to do is get the function's address by GetProcAddress(), and call the function by its address,
rather than name.

BTW, why do you ask all that??? What's wrong with .lib files????

Hi Anton

I believe what the OP is asking is for a way to include the actual object code of the DLL into his EXE so that he dosen't have to e.g. distribute the DLL file itself. The program I linked in my other reply to this thread does just that.

Max
.



Relevant Pages

  • Re: problem forming .lib in EVC4
    ... Pawan ... I am able to form a .dll file, but the corresponding .lib file ... applications). ...
    (microsoft.public.pocketpc.developer)
  • Re: Name decoration Problem
    ... I placed a copy of the .h file, and the *.dll file in ... > Are you linking with the DLL's .lib file? ... >> void foo() ...
    (microsoft.public.win32.programmer.ole)
  • Re: problem forming .lib in EVC4
    ... I believe it's a project option. ... I am able to form a .dll file, but the corresponding .lib file ... applications). ...
    (microsoft.public.pocketpc.developer)
  • Re: Re:Linking DLL Statically
    ... The process take place when we are linking with the lib file. ... You cannot link with DLL file - this is what .lib files are for. ... Anton Bassov ...
    (microsoft.public.win32.programmer.kernel)
  • Re: How to build a static library and use it ?
    ... I have studied the generated lib file. ... includes a section header which has an "Info" flag. ... Linker Directives ... it and convert the generated dll file into a lib file. ...
    (microsoft.public.windowsce.embedded.vc)