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?
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?
Paste code.
Forginforcer,
your posting sounds for me like this:
Helo, I hav a bik proplm in my 5000 thausend line prokram.
I trie:
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.
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.
this do not work:
but this:
But that I cant use, because the window is created and not made with a rc-script.
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.
did you register your window class ??
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!
Perhaps it will make bad luck!
You cant use a resource dialog with CreateWindowEx. Did you RTFM about CreateWindowEx? MSDN and PSDK explain that very well.
bazik you have overread something!:tongue:
But now I the error i wanted to acess the handle before it was createt.
Im so stupid!
But now I the error i wanted to acess the handle before it was createt.
Im so stupid!