DLL with same conventions as VC++
Gilles G.
schaouette at free.fr
Wed Jun 20 10:40:32 PDT 2007
Hello,
I am trying to build a dll using D.
In my first attempt to write it in C++, I add working calls with the main application by using something like:
int __stdcall DLLVersion(){return 1;}
this also only worked with VC++ using a .def file like (couldn't manage to make it work using borland):
EXPORTS
DLLVersion
As I read the documentation, I understand (not sure) that in order to have equivalent calls, I must use:
export extern(Windows) int DLLVersion(){return 1;}
The problem is that the main application doesn't seem torecognize the D DLL.
Any help would be fantastic!
--
Gilles
More information about the Digitalmars-d
mailing list