Hi, i have problems with a CreateWindowsEX instruction.
When I use resources, its nor ptoblem to get the handle:
INOKE CreateParam.....
MOV hDlg, EAX

But With CreateWindowsEx, it seems not to work.
When I make a copy of the handle, it gets destroyed and its not possible to steer it.

Do I have to get the hanlde in a different way?
Posted on 2003-06-17 10:05:24 by Forginforcer
Paste code.
Posted on 2003-06-17 10:22:47 by comrade
Forginforcer,

your posting sounds for me like this:



Helo, I hav a bik proplm in my 5000 thausend line prokram.
I trie:



....
.........
invke .....
xr eax, eax
rett
...
....


And id kraschs zomewhere abov. How can I fix ths?


So please post more of your code as it would make it alot easier to help.
Posted on 2003-06-17 10:26:17 by bazik
this do not work:


invoke CreateWindowEx,NULL,ADDR dlgname,ADDR dlgname, WS_OVERLAPPEDWINDOW,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,NULL,NULL,hInst,NULL
MOV h_Dlg, EAX
MOV hDlg,EAX


but this:


INVOKE CreateDialogParam, hInstance, ADDR dlgname, NULL, NULL, NULL
MOV hDlg, EAX
MOV h_Dlg, EAX

But that I cant use, because the window is created and not made with a rc-script.
Posted on 2003-06-17 10:34:19 by Forginforcer
did you register your window class ??
Posted on 2003-06-17 11:08:04 by AceEmbler
hmm, i don't know! I restored a old file and i will delete the file with the seldom bug.
Perhaps it will make bad luck!
Posted on 2003-06-17 12:31:24 by Forginforcer
You cant use a resource dialog with CreateWindowEx. Did you RTFM about CreateWindowEx? MSDN and PSDK explain that very well.
Posted on 2003-06-17 13:40:53 by bazik
bazik you have overread something!:tongue:

But now I the error i wanted to acess the handle before it was createt.
Im so stupid!
Posted on 2003-06-17 13:47:29 by Forginforcer