Windows parameter

2013-06-30 Thread shuji
Can someone help me with this: I have a library which I try to import from D //funcs.lib //windows includes... HWND hwnd; int setHWND(HWND extHwnd){ hwnd = extHwnd; return 0; } //main.d pragma(lib, gdi32.lib); import core.runtime; import core.sys.windows.windows; extern (C++) {

Re: Windows parameter

2013-06-30 Thread Simen Kjaeraas
On Sun, 30 Jun 2013 20:24:17 +0200, shuji cravs...@hotmail.com wrote: int setHWND(HWND extHwnd){ hwnd = extHwnd; return 0; } And: extern (C++) { int setHWND(HWND hwnd); } See how these are different? One of them is an extern (C++) function, the other is a D

Re: Windows parameter

2013-06-30 Thread shuji
this code is in a .cpp file //funcs.lib //windows includes... HWND hwnd; int setHWND(HWND extHwnd){ hwnd = extHwnd; return 0; } So im trying to import from D like this. I dont think I can implement this line in C++ extern (C++) {}

Re: Windows parameter

2013-06-30 Thread Anthony Goins
On Sunday, 30 June 2013 at 19:03:13 UTC, shuji wrote: this code is in a .cpp file //funcs.lib //windows includes... HWND hwnd; int setHWND(HWND extHwnd){ hwnd = extHwnd; return 0; } So im trying to import from D like this. I dont think I can implement this line in C++ extern

Re: Windows parameter

2013-06-30 Thread shuji
On Sunday, 30 June 2013 at 20:04:12 UTC, Anthony Goins wrote: On Sunday, 30 June 2013 at 19:03:13 UTC, shuji wrote: this code is in a .cpp file //funcs.lib //windows includes... HWND hwnd; int setHWND(HWND extHwnd){ hwnd = extHwnd; return 0; } So im trying to import from D like

Re: Windows parameter

2013-06-30 Thread David
Am 30.06.2013 22:20, schrieb shuji: On Sunday, 30 June 2013 at 20:04:12 UTC, Anthony Goins wrote: On Sunday, 30 June 2013 at 19:03:13 UTC, shuji wrote: this code is in a .cpp file //funcs.lib //windows includes... HWND hwnd; int setHWND(HWND extHwnd){ hwnd = extHwnd; return 0; }