Hello I'm trying to open a window with win32 in D, and I've got a little problem. The program crashes when I call CreateWindowA.
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 launch the exe, the program crashes and I've got:
Process terminated with status -1073740791
on code::blocks.