for some odd reason DialogBoxParam will get an error in windows 2k, but not in windows xp. any ideas why????
Posted on 2002-07-17 17:19:12 by Qages
My program works in Win2K but not in XP, any ideas why?


Could you answer me my above question?
Please post some source code, and a more detailed error description (call GetLastError). Else it's quite difficult to help you. Also post your RC file, please.

Thanks,
bAZiK
Posted on 2002-07-17 17:27:43 by bazik
btw the error(exception, memory access err) is in the api and termantes after the error
:77E2C19C F6432BC0 test , C0
in user32.dll in windows 2k under Exported fn(): DefDlgProcA - Ord:0081h
Posted on 2002-07-17 17:29:43 by Qages
my code


invoke GetModuleHandle, NULL
mov hInstance, eax

; -------------------------------------------
; Call the dialog box stored in resource file
; -------------------------------------------
invoke DialogBoxParam,hInstance,ADDR dlgname,0,ADDR WndProc,0


my rc


1 ICON DISCARDABLE "AlienBomb.ico"

750 BITMAP MOVEABLE PURE LOADONCALL DISCARDABLE "HackVault.bmp"

TESTWIN DIALOGEX MOVEABLE IMPURE LOADONCALL DISCARDABLE 10, 10, 192, 87, 0
STYLE DS_MODALFRAME | 0x0004 | DS_CENTER | WS_CAPTION | WS_MINIMIZEBOX | WS_SYSMENU | WS_VISIBLE | WS_POPUP
CAPTION "By Qages"
FONT 8, "MS Sans Serif", 700, 0 /*FALSE*/
BEGIN




GROUPBOX "C",105,0,0,192,29,0
CONTROL 750,107,"Static",SS_BITMAP,0,64,333,40


END
Posted on 2002-07-17 17:32:05 by Qages
ok i tryed

1000 DIALOGEX MOVEABLE IMPURE LOADONCALL DISCARDABLE 10, 10, 192, 87, 0, but an exception still ocurrs.
Posted on 2002-07-17 17:46:29 by Qages
A quick search would always get you there fast.

http://www.asmcommunity.net/board/index.php?topic=6493&highlight=DialogBoxParam

or get Iczelions tutorial there's a tutorial on loading dialog boxes using DialogBoxParam
Posted on 2002-07-17 18:27:01 by stryker
never mind , i have fixed it.
Posted on 2002-07-17 19:26:03 by Qages