10-22-2011, 08:48 PM
So if I use a dialog to initialize the KitInit, I can then executed commands from separate functions as long as the dialog is open.
If I close the dialog and reopen it, none of the commands works until I restart QM where I get the same runtime error. Once QM restarts, I can run the dialog and execute commands again.
Function InitKitDlg
If I close the dialog and reopen it, none of the commands works until I restart QM where I get the same runtime error. Once QM restarts, I can run the dialog and execute commands again.
Function InitKitDlg
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;END DIALOG
;DIALOG EDITOR: "" 0x2030208 "" "" ""
if(!ShowDialog("InitKitDlg" &InitKitDlg)) ret
ret
;messages
sel message
,case WM_INITDIALOG
,KitInit
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1