I filled out all fields of wndclassex and operands of createWindowEx exactly
the same like in identical (working) C program, and there are still the same
problem.
//
void main(){
try{
ptr handle;
//Window wnd = new Window();
WndClassEx wndClass;
Ok thanks, My fault ;p
I have the problem with the following code in D2:
CreateWindowEx returns NULL but I haven't got idea why?
module test;
import base;
static import user32;
static import kernel32;
void MsgBox(immutable char [] o_str){
user32.messageBox(null, cast(str)o_str, cast(str)msg, 0x0);
}
struct
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Zarathustra wrote:
I have the problem with the following code in D2:
CreateWindowEx returns NULL but I haven't got idea why?
snip
That's because your are not properly processing all of the messages that
are involved in window creation.
See: