Heinz Wrote:

> Hello everyone.
> I've been using DLL's in D for a long time but just recently i'm having a 
> problem. Lets see if someone can help me a bit.
> 
> I have several lines of code but i'll use an example from the DMD site wich 
> is almost the same come.
> 
> Read the DMD site about DLL's here: http://www.digitalmars.com/d/1.0/dll.html
> 
> Check for the section "D code calling D code in DLLs".
> 
> If you extern(C) all exports in mydll.d and change all symbols in test.d to 
> their C respectives, when running you'll get access violation.
> 
> Any ideas?

I attached a rar file with the sources just to see what i'm talking about. The 
example is from the DMD site. Included is the extern D (ok) and the extern C 
(fails). To compile open "compile.bat" and to run the programs use "run.bat".

Attachment: mydll.rar
Description: application/rar

Reply via email to