Here is a small radasm project, it's basically icz's tut 10-1 thrown together to demo other small items. For some reason the dialog box is not showing up.

Any ideas?
Posted on 2002-01-05 02:33:35 by Asm_Freak

invoke CreateDialogParam, hInstance, NULL, NULL, NULL,NULL
mov hDlg,eax

.if eax == NULL
invoke error_msg
invoke ExitProcess, 0

try: invoke CreateDialogParam, hInstance, SADD ("IDD_DLG"), NULL, NULL, NULL

The pTemplateName is supposed to be the name of your dialog box
template, it's usually defined in the resource script; see
..\res\DifPatcher.rc. CreateDialogParam isn't guaranteed to succeed so it's
an appropriate place start putting some error handling. I thought we went
through this before:
Posted on 2002-01-05 03:32:41 by Boggy
Try to change:

invoke CreateDialogParam,hInstance,ADDR DlgName,NULL,NULL,NULL


invoke CreateDialogParam,hInstance,ADDR DlgName,NULL,OFFSET WndProc,NULL

Sorry if OFFSET syntax isn't corrected, I don't know asm.
Posted on 2002-01-05 03:38:09 by LuHa
Hi Asm_Freak

You can also change the (Name) property of your dialog to MyDialog, and you should also specify a WndProc as LuHa said.

Posted on 2002-01-05 03:44:21 by KetilO
the WndProc had nothing to do with it, the chaning of the name property worked, thanks guys.

Posted on 2002-01-05 03:56:42 by Asm_Freak