Creating A D DLL For Use By VB
    starkweatherr at mchsi.com 
    starkweatherr at mchsi.com
       
    Sun Mar 19 12:05:50 PST 2006
    
    
  
In article <dvkad2$2dcj$1 at digitaldaemon.com>, starkweatherr at mchsi.com says...
>
>Is it safe to assume that I need to put the export (Windows) in fron to the
>declaration as well as the definition?
>
>
I don't know where the other message went, but I tried both 
//MyDLL.d
extern (Windows) int addInt(int int1, int int2);
//MyDLL.d
extern (Windows) int addInt(int int1, int int2);
and
//MyDLL.d
export extern (Windows) int addInt(int int1, int int2);
//MyDLL.d
export extern (Windows) int addInt(int int1, int int2);
and I get the same thing: Error 42: Symbol undefined _addInt at 8
I also tried:
LIBRARY "mydll.dll"
EXETYPE NT
SUBSYSTEM WINDOWS
CODE SHARED EXECUTE
DATA WRITE
EXPORTS
addInt  @8
and got:
Optlink : Error 180: No match found for export/Entry - : addInt
Optlink : Error 81: Cannot EXPORT : addInt
DMD Error 42: Symbol Undefined _addInt at 8
    
    
More information about the Digitalmars-d-learn
mailing list