link from a dll to another function in another dll?
Robert Jacques
sandford at jhu.edu
Thu Apr 21 19:14:36 PDT 2011
On Thu, 21 Apr 2011 12:31:56 -0400, maarten van damme
<maartenvd1994 at gmail.com> wrote:
> according to dllexp.exe (a dll examiner) my dll does not export any
> functions.
> So there is something wrong in my declaration:
>
> pragma(lib,kernel33.lib);
> extern(C){
> export void * functionfromkernel33.lib () ;
> ...
> }
>
> How can one write this correctly?
You need a dll main function. Check out the dll example that comes with
dmd (i.e. dmd2\samples\d\mydll) for the complete example.
More information about the Digitalmars-d
mailing list