Re: dll problems in VC++
From: Norman Bullen (norm_at_BlackKittenAssociates.com.INVALID)
Date: 02/11/05
- Next message: Carl Daniel [VC++ MVP]: "Re: Detecting Dual-Processor machines"
- Previous message: Leon2005: "Detecting Dual-Processor machines"
- In reply to: Severian: "Re: dll problems in VC++"
- Next in thread: Carl Daniel [VC++ MVP]: "Re: dll problems in VC++"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Feb 2005 03:44:18 GMT
Severian wrote:
>
< snipped >
>
> Q: I know it is possible to create a .lib file for an .exe file. Is it
> possible to link that .lib with the DLL and access any exported
> functions?
>
> I've not tried this (I pass a list of callback function pointers to
> the DLL myself.)
>
> --
> Sev
There are three ways to cause the linker to create an (export) .LIB
file. So far as I know, any will work when you link either a .DLL or a .EXE.
These are:
__declspec(dllexport)
EXPORTS directive in a .DEF file
/EXPORT linker command line option
I have only used the first with a .EXE file but it does work. Any .DLL
modules loaded by the .EXE can reference those symbols in the .EXE.
Norm
-- -- To reply, change domain to an adult feline.
- Next message: Carl Daniel [VC++ MVP]: "Re: Detecting Dual-Processor machines"
- Previous message: Leon2005: "Detecting Dual-Processor machines"
- In reply to: Severian: "Re: dll problems in VC++"
- Next in thread: Carl Daniel [VC++ MVP]: "Re: dll problems in VC++"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|