Migration from HMG to HMG Minigui
Moderator: Rathinagiri
- serge_girard
- Posts: 3342
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: Migration from HMG to HMG Minigui
Grigory,
Is there some list with 'differences' and how to change to alternate syntax or whatever.
Serge
Is there some list with 'differences' and how to change to alternate syntax or whatever.
Serge
There's nothing you can do that can't be done...
- Claudio Ricardo
- Posts: 367
- Joined: Tue Oct 27, 2020 3:38 am
- DBs Used: DBF, MySQL, MariaDB
- Location: Bs. As. - Argentina
Re: Migration from HMG to HMG Minigui
+1serge_girard wrote: ↑Tue Mar 29, 2022 2:30 pm Grigory,
Is there some list with 'differences' and how to change to alternate syntax or whatever.
Serge
I join the request again, I had already done it when (I think Jimmy) requested it a while ago.
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
WhatsApp / Telegram: +54 911-63016162
- AUGE_OHR
- Posts: 2096
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: Migration from HMG to HMG Minigui
hi,
i have "try" to write a Memo what is need to "translate" HMG into MiniGUI Extendet Version
but it is a "long" Memo and still incomplete ... and not all what i wrote is "correct" ( found later other Way)
i attach my Memo, hope it help you
i have "try" to write a Memo what is need to "translate" HMG into MiniGUI Extendet Version
but it is a "long" Memo and still incomplete ... and not all what i wrote is "correct" ( found later other Way)
i attach my Memo, hope it help you
have fun
Jimmy
Jimmy
- serge_girard
- Posts: 3342
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: Migration from HMG to HMG Minigui
Thanks Jimmy and Claudio,
I had much trouble at start but thanks to Grigory resolved. Now testing and some coding is not working yet
(aFrmList := _HMG_SYSDATA [66]) but I have commented the ones that gave problem and now real testing can begin...
But overall fast and easy migration, again MANY thanks to Grigory (and Marc at start!)
Serge
I had much trouble at start but thanks to Grigory resolved. Now testing and some coding is not working yet
(aFrmList := _HMG_SYSDATA [66]) but I have commented the ones that gave problem and now real testing can begin...
But overall fast and easy migration, again MANY thanks to Grigory (and Marc at start!)
Serge
There's nothing you can do that can't be done...
Re: Migration from HMG to HMG Minigui
Serge,serge_girard wrote: ↑Tue Mar 29, 2022 2:30 pm Grigory,
Is there some list with 'differences' and how to change to alternate syntax or whatever.
Yes, of course.
We have the 'Harbour MiniGUI Extended Syntax Extensions' list in the file exdiff.txt in folder \Minigui\Doc
IMHO The above file is slightly outdated due to the recent Minigui modifications.
Kind Regards,
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
- serge_girard
- Posts: 3342
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: Migration from HMG to HMG Minigui
Thanks Grigory ! So much to see and learn.....
Serge
Serge
There's nothing you can do that can't be done...
- serge_girard
- Posts: 3342
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: Migration from HMG to HMG Minigui
Grigory,
One more question:
I now have a working program! ONE matter remains:
I used to start my programs from within a .BAT file which deletes a few working files etc.
and finally calls my program with a parameter.
This is done by a shortcut on the desktop which calls the BAT file in its working directory.
Then a DOS screen is opened and then my application is openend (2 screens!). These 2 screen remains
until one of them is closed. Closing (with X) the DOS screen will also close my application.
In my application the closing with X is prohibited (ON INTERACTIVECLOSE) and closing must be done
by pressing ESC which will do some extra tests before closing.
In HMG the DOS screen is opened, my application is openend and the DOS screen closes and then there is
only one way to close the application: ESC
So how to get rid of this DOS screen!
In HMG REQUEST HB_GT_WIN_DEFAULT would do the DOS thing...
Serge
One more question:
I now have a working program! ONE matter remains:
I used to start my programs from within a .BAT file which deletes a few working files etc.
and finally calls my program with a parameter.
This is done by a shortcut on the desktop which calls the BAT file in its working directory.
Then a DOS screen is opened and then my application is openend (2 screens!). These 2 screen remains
until one of them is closed. Closing (with X) the DOS screen will also close my application.
In my application the closing with X is prohibited (ON INTERACTIVECLOSE) and closing must be done
by pressing ESC which will do some extra tests before closing.
In HMG the DOS screen is opened, my application is openend and the DOS screen closes and then there is
only one way to close the application: ESC
So how to get rid of this DOS screen!
In HMG REQUEST HB_GT_WIN_DEFAULT would do the DOS thing...
Serge
There's nothing you can do that can't be done...
Re: Migration from HMG to HMG Minigui
Hi Serge
Hace mucho tiempo yo convertía los .Bat en .Exe y me funcionaba
pero no recuerdo que programa era.
Tal vez este te sirva...
*-------------------------------------------------------------------------------------
hi serge
A long time ago I converted the .Bat to .Exe and it worked for me
But I don't remember what program it was.
Maybe this will help you...
https://bat2exe.net
Hace mucho tiempo yo convertía los .Bat en .Exe y me funcionaba
pero no recuerdo que programa era.
Tal vez este te sirva...
*-------------------------------------------------------------------------------------
hi serge
A long time ago I converted the .Bat to .Exe and it worked for me
But I don't remember what program it was.
Maybe this will help you...
https://bat2exe.net
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
- AUGE_OHR
- Posts: 2096
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: Migration from HMG to HMG Minigui
hi Serge,
but you can change DOS-BOX to "minimize"
Attached my DXE_CreateLNK() where you have access to
---
other Way is a small "Starter-EXE" using ShellOpenFile() API
call a *.BAT using a *.LNK will default open DOS-BOXserge_girard wrote: ↑Wed Mar 30, 2022 11:07 am I used to start my programs from within a .BAT file which deletes a few working files etc.
and finally calls my program with a parameter.
but you can change DOS-BOX to "minimize"
Attached my DXE_CreateLNK() where you have access to
Code: Select all
oShellLink:ShowCommandother Way is a small "Starter-EXE" using ShellOpenFile() API
Code: Select all
PROCEDURE MAIN(,cApp,cParameter)
IF FILE(cApp)
ShellOpenFile(cApp,,cParameter)
...Code: Select all
FUNCTION SHELLOPENFILE( cPath, cFILE, cPara, cHome )
...
lSuccess := ShellExecute( 0, ;
"open", ;
cPath + cFILE, ;
cPara, ;
cHome, ;
SW_HIDE ) // default SW_NORMALhave fun
Jimmy
Jimmy
- serge_girard
- Posts: 3342
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: Migration from HMG to HMG Minigui
It seems that START application followed by EXIT will START my APP.EXE and then force the DOS screen to close.
This is what I want! Thanks all for helping!
DXE_CreateLink is very interesting!
I use some similar code:
Serge
Code: Select all
DEL C:\MYFOLDER\SOMEFILES..
START C:\MYFOLDER\MYAPP somePARAMETER
EXIT
DXE_CreateLink is very interesting!
I use some similar code:
Code: Select all
LOCAL WshShell := CreateObject("WScript.Shell")
LOCAL DesktopFolder := WshShell:SpecialFolders("Desktop")
LOCAL xDEFAULT := ALLTRIM(DISKNAME() + ":\" + CURDIR() )
IF !FILE(DesktopFolder + "\My_App.lnk")
FileShortcut := WshShell:CreateShortcut(DesktopFolder + "\My_App.lnk")
FileShortcut:TargetPath := xDEFAULT + "\My_App.BAT"
FileShortcut:Description := "My_App"
FileShortcut:IconLocation := xDEFAULT + "\IMAGES\PROJ.ICO, 0" //Zero is the index
FileShortcut:WorkingDirectory := xDEFAULT
FileShortcut:Save()
ENDIF
There's nothing you can do that can't be done...