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++) {
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
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++) {}
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
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
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;
}