With a little help of the forum...

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

With a little help of the forum...

Post by Roberto Lopez »

Hi All,

I'm creating an alternate version of HMG-IDE to make it able to work with HMG.4 (in fact with any hbmk2 project).

A minimal modification is required in buildapp.bat.

The line invoking hbmk2, must be modified as follows to make it able to find .fmg files in the project folder (it's the same for HMG3):
HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -i.
But the true problem is that HMG.4 is unable to build the basic application generated by IDE at project creation.
#include <hmg.ch>

Function Main

Load Window Main
Main.Center <-- SYNTAX ERROR HERE
Main.Activate <-- SYNTAX ERROR HERE

Return
If anyone has a clue about that and can solve it, I'll publish the new IDE (HMG.4 enabled) version.

Attached to this message is the complete project.

TIA.
Attachments
sample.zip
(1.1 KiB) Downloaded 214 times
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: With a little help of the forum...

Post by esgici »

Hi Maestro

I guess need () after Center and Activate

Code: Select all

        Main.Center    ==>    Main.Center()
        Main.Activate  ==>    Main.Activate()
Best regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: With a little help of the forum...

Post by Roberto Lopez »

esgici wrote:Hi Maestro

I guess need () after Center and Activate

Code: Select all

        Main.Center    ==>    Main.Center()
        Main.Activate  ==>    Main.Activate()
Best regards

--

Esgici
The program compiles with such changes, but it does not run...
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: With a little help of the forum...

Post by esgici »

Roberto Lopez wrote: The program compiles with such changes, but it does not run...
Yes, like Activate doesn't exist :(

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: With a little help of the forum...

Post by mrduck »

Hi Roberto,
I can't check now since I'm leaving.

Please try adding
-DHMG3 on cth hbmk2 command line

This will include hmg3.ch file where there are some other defines needed for hmg3 compatibility

Please also add these 2 lines at the top of source code:
hbqt_errorsys() // to enable error system
hmg3(.T.) // to enable better hmg3 compatibility


I started to do some commits yesterday, I have others to do later today, also about the ide in hmg4

Francesco
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: With a little help of the forum...

Post by esgici »

Hi Maestro
Roberto Lopez wrote: The program compiles with such changes, but it does not run...
I guess you have find, but I find new and I want share with other friends too.

Problem is : ICON clause in DEFINE WINDOW statement doesn't work ( probably for now ).

Program run after extracting ICON clause ( added by IDE automatically ).

Apparently, we have begin a re-learn course for converting HMG3 applications to HMG4 :(

f.e. @ <nRow>, <nCol> syntax seems fully abandoned and our programs have tons of them :cry:

A last note for our friend who want begin to HMG4 ( I guess no too many ): Add

Code: Select all

HbQt_ErrorSys()
at beginning of every main prg; this will very helpful for understanding an learning HMG4.

f.e. after adding this line error message produced and problem appears:
Set Window Icon error mesage
Set Window Icon error mesage
SetWinIconError.JPG (22.78 KiB) Viewed 4312 times
Please nobody don't misunderstand me; I don't want criticize anybody, anything. My only goal is share my humble experiences with my friends.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: With a little help of the forum...

Post by esgici »

I have seen Francesco's response after submitted mine.

I'll try his advises too, thanks.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: With a little help of the forum...

Post by mrduck »

@escigi

The fact that the program compiles means that the @ x,y syntax is fully supported.

The error is about the parameter of ICON. hmg4 is trying to set icon but its parameter is not the expected type. I will check later.

Last summer I was able to compile and execute some .FMG files sent to me by Malek, applying necessary changes to hmg.ch and adding hmg3.ch.

Please note that hmg3.ch is not completed ! there are some things to convert.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: With a little help of the forum...

Post by esgici »

esgici wrote: I'll try his advises.
Tried; no change :(

Regards

--

Esgci
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: With a little help of the forum...

Post by esgici »

mrduck wrote: The fact that the program compiles means that the @ x,y syntax is fully supported.
Sorry, don't understood :( Where is @ x,y syntax in compiled program ?
The error is about the parameter of ICON.
Please don't repeat said things such your own opinion.
hmg4 is trying to set icon but its parameter is not the expected type.
In the example used only parameter is NIL. Does HMG4 don't understand NIL ?
Please note that hmg3.ch is not completed !
Please also don't repeat known issues. I don't said "announced as 'completed' but left missing".

Only goal is assist you by testing and asking somethings. If you don't like conversations such type, please speak clearly: "I'm closed every kind of critics".

--

Esgici
Viva INTERNATIONAL HMG :D
Post Reply