www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Loading a C/C++ dll

reply OK <HerrSauronII lavabit.com> writes:
Hello again,

I know the extern(C) mechanism, but how do I actually load a C-dll
such that my D-program has access to the functions of the C/C++ dll.

regards,
Oliver
Sep 07 2010
parent Kagamin <spam here.lot> writes:
OK Wrote:

 I know the extern(C) mechanism, but how do I actually load a C-dll
 such that my D-program has access to the functions of the C/C++ dll.
 
You just link to it, system loader will do actual loading for you automatically.
Sep 07 2010