Re: dll problems in VC++

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Tim Roberts (timr_at_probo.com)
Date: 02/11/05


Date: Thu, 10 Feb 2005 18:55:47 -0800

Severian <severian@chlamydia-is-not-a-flower.com> wrote:
>
>Q: I know it is possible to create a .lib file for an .exe file.

No, it is not. You can make a .lib file INSTEAD of a .exe, by adding all
of the object files to the library instead.

>Is it possible to link that .lib with the DLL and access any exported
>functions?

Not once the DLL has been linked. If you have access to the object files
for the DLL before they were linked, then there are all kinds of options,
but I don't think that is the original scenario.

-- 
- Tim Roberts, timr@probo.com
  Providenza & Boekelheide, Inc


Relevant Pages

  • Re: how do you start learning assembly language
    ... a Windows program which couldn't link with other object files wouldn't even be able to call ExitProcess!!! ... Usually that's the linker's job (delete link.exe and see how well Masm works!). ... RosAsm was designed to be used for fully assembly coded applications, ... that is - it'll make a .dll AFAIK(?)). ...
    (alt.lang.asm)
  • Re: GCC
    ... and LD and binutils should work with those object files then using ... binutils knows nothing about OMF files. ... special support from compiler to has "a special massage" of code in a DLL. ... toolkit is in OMF format and we have to interface with the system but I ...
    (comp.os.os2.programmer.porting)
  • Re: how make a static link
    ... ok, I understand, that means any third party dll, when I use it, only can ... ways use .lib files. ... One way is to take your object files, and combine them into a .lib. ...
    (microsoft.public.vc.language)
  • Re: Creating DLL from .a files
    ... Extract all object files from the .a archive ... to build a dll but those can be empty. ... If you have a .a file from a windows compiler, ... the .a file format and a windows group for the rest. ...
    (comp.lang.c)
  • Re: how to get .lib from .dll
    ... >There is a file in windows directory called crtdll.dll. ... directly with your application and avoiding another DLL load. ... Some routines in the C runtime depend on an initialization routine. ... The linker sees object files. ...
    (comp.lang.asm.x86)