Can I do something like this :
__
extern (Windows) LRESULT delegate (HWND hWnd, UINT message, WPARAM wParam,
LPARAM lParam) MyWinProcDelegate;
this() {
MyWinProcDelegate = Events;
}
extern (Windows) LRESULT Events (HWND
The Window-Procedure in the Win32 API must be static \ global function since
it cannot take a class-object (the this) parameter. One can of-course use
workarounds like a hWnd-object dictionary and such.
I wonder if D has a way to elegantly solve it, like create a tiny member
function copy for
Linking the following two files gives me a link-error:
a.d:
import std.stdio;
extern (D) string test ();
void main()
{
writeln(test());
readln();
}
b.d:
string test () {
I want to save the hInstance of WinMain so I would be able to use it later in
some
other module. So how do I accomplish that ?
I'm quite new to this language, could you please provide a short snippet of code
to clarify ?