Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot show dialog error in exe
#1
Hi Gintaras,

Completed my program and when compiled and run from exe it works great.

When the exe is run from another computer, it shuts down upon opening 1 of the 10 dialogs in the program (all others work fine). The dialog is the queue files dialog (from queue files forum post/thread), called from the macro converted to a function in order to make the exe.

Here is the error line:

</_>Error (RT) in <open "fnc_exec_ftp_queue /2007">fnc_exec_ftp_queue</open>: cannot show dialog

I know this is general, but wanted to know if you can point me to what to look for, as to what might be causing this problem. Also, not sure what the /2007 means in the <open ... code.

Thanks!
#2
In most cases it is when some of control classes used in the dialog is not registered.
Probably it is QM_Grid.
ShowDialog registers it, but fails if qmgrid.dll is missing.
Take qmgrid.dll from QM folder. Put in exe folder on each computer.
Or use this function.
Function ExeQmGridDll2
Code:
Copy      Help
;/
function!

;Use this function in exe if you want to add qmgrid.dll to the exe file.
;When making exe, this function adds qmgrid.dll to exe.
;When exe runs, this function extracts the dll to temp folder, and loads.
;Don't use this function if you want the dll to be separate file.

;Returns: 1 success, 0 failed.

;Added in: QM 2.3.3.

;EXAMPLE
;ExeQmGridDll2 ;;somewhere at the beginning of exe code


#if EXE
#exe addfile "$qm$\qmgrid.dll" 21079
if !GetModuleHandle("qmgrid.dll")
,_s.expandpath(F"$temp$\qm\0x{QMVER}\qmgrid.dll")
,if !dir(_s)
,,if(!ExeExtractFile(21079 _s)) ret ;;also creates folders.
,if(!LoadLibrary(_s)) ret
#endif
ret 1
#3
when 'Added in: QM 2.3.3.'?
#4
Should be next month.
#5
Thanks for being awake, G...saved my butt ; )
#6
Who wants to test QM 2.3.3 alpha?

http://www.quickmacros.com/dev/quickmac.exe

Beta should be released next month.
#7
Count me in!
#8
trigger not work
CN* /PTSPEC~1
#9
Thank you, I'll try to fix it.
Use full filename, without ~1.
#10
Gintaras Wrote:Beta should be released next month.

any news?
#11
Currently I don't work with QM. Cannot promise something.
#12
Gintaras Wrote:Currently I don't work with QM. Cannot promise something.

Huh, does it mean, you dont work in QM anymore? Confusedhock:
#13
Gintaras Wrote:Currently I don't work with QM. Cannot promise something.

What, does it mean, you dont work in QM anymore? Confusedhock:

One more question, how to backup all the macros,functions etc before I test out the beta version?
And does it mean, I can distribute the beta version compiled exe files too.
#14
This version actually is stable, and don't need to backup. I just don't have time to finish some new features. Will continue developing QM later.

You can distribute exe compiled with this QM version. Almost nothing changed in exe.


Forum Jump:


Users browsing this thread: 1 Guest(s)