Hello, I am trying to open a window with win32 in D, and I have a little problem. The program is called when CreateWindowA is called.
Here is my code:
this.fenetrePrincipale = CreateWindowA(this.classeFenetre.lpszClassName, toStringz(title), WS_OVERLAPPEDWINDOW, 0, 0, 100, 100, null, null, this.hInstance, null);
with:
this.classeFenetre.lpszClassName = toStringz("classeF"); this.hInstance = GetModuleHandleA(null);
and
string title = "test";
When I run exe, the program crashes, and I have:
Process terminated with status -1073740791
on code :: blocks.
source share