Re: HWND is NULL but GetLastError returns 0x00

2009-10-17 Thread Zarathustra
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;

Re: HWND is NULL but GetLastError returns 0x00

2009-10-17 Thread Zarathustra
Ok thanks, My fault ;p

HWND is NULL but GetLastError returns 0x00

2009-10-16 Thread Zarathustra
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

Re: HWND is NULL but GetLastError returns 0x00

2009-10-16 Thread div0
-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: