linking works with windows Dll, but access violations occur

2010-09-07 Thread OK
Hello, I followed the recommended threads on linking windows Dlls Using the described tool "coffimplib" I was able to link to executables. However, sometimes when using function from the windows library I get : object.Error: Access Violation during execution. Is this problem known to someone and

How to properly link with a windws .lib file

2010-09-07 Thread OK
hello, now I have written some code in first.d and added some extern(C) functions in externs.d. How do I compile and link everything with extern.lib ? regards, Oliver

Loading a C/C++ dll

2010-09-07 Thread OK
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

Re: DMD2 does not link on windows 7-64bit

2010-09-07 Thread OK
To answer my own post : the problems vanish when I add a main() method. question : how do I automagically add a standard main method ? regards, Oliver