Re: D2 Win API Problem

2009-09-21 Thread torhu
On 21.09.2009 17:11, A Bothe wrote: I solved the problem! I've to make the function pointer to be extern(C), so I will have extern(C) { int function(...) tfunc; } MessageBoxA is definitely stdcall, so extern (Windows) is correct. So the problem has to be something else.

Re: D2 Win API Problem

2009-09-21 Thread A Bothe
@torhu: Thank you for your answer, but I also tried that and I also came to the same result:)

Re: D2 Win API Problem

2009-09-21 Thread A Bothe
I solved the problem! I've to make the function pointer to be extern(C), so I will have extern(C) { int function(...) tfunc; }

Re: D2 Win API Problem

2009-09-20 Thread torhu
On 20.09.2009 20:11, A Bothe wrote: Hello guys, I got a problem with the following code. I can compile it successfully but when I want to start it, there is just this "object.AccessVialotion"! Even GetLastError() returns 0 so the problem cannot be found in wrong-written names... Thanks in

Re: D2 Win API Problem

2009-09-20 Thread Jeremie Pelletier
A Bothe wrote: Hello guys, I got a problem with the following code. I can compile it successfully but when I want to start it, there is just this "object.AccessVialotion"! Even GetLastError() returns 0 so the problem cannot be found in wrong-written names... Thanks in advance! import std

D2 Win API Problem

2009-09-20 Thread A Bothe
Hello guys, I got a problem with the following code. I can compile it successfully but when I want to start it, there is just this "object.AccessVialotion"! Even GetLastError() returns 0 so the problem cannot be found in wrong-written names... Thanks in advance! import std.loader, std.c.wi