Implicit Delayed DLL Loading?

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Jan 4 02:44:07 PST 2011


I think Derelict loads the DLLs at load time, before the call to
main() (I could be wrong here). Delayed loading is when a DLL is
imported at runtime when there's an actual call made that requires the
DLL, it doesn't get preloaded at load time.

On 1/4/11, Vladimir Panteleev <vladimir at thecybershadow.net> wrote:
> On Tue, 04 Jan 2011 11:03:45 +0200, %u <wfunction at hotmail.com> wrote:
>
>> I was wondering, is there a way to tell the compiler to implicitly
>> delay-load
>> a DLL, like you can with the /DELAYLOAD:DllName option in Visual C++?
>
> Well, first of all DELAYLOAD is a linker option, and it doesn't look like
> OPTLINK supports it.
> You could have a look at how Derelict loads and binds entire APIs (e.g.
> SDL) at runtime.
>
> --
> Best regards,
>   Vladimir                            mailto:vladimir at thecybershadow.net
>


More information about the Digitalmars-d mailing list