REALLY IMPORTANT: is anyone interested in HMG4 ?

Moderator: Rathinagiri

User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: REALLY IMPORTANT: is anyone interested in HMG4 ?

Post by l3whmg »

Hi Rathinagiri
After a brief and quickly check, I found many compiler error. Here some examples and my mod marked L3W

Code: Select all

#include "hmg.ch"
#include "dbstruct.ch"
#include "hbqtgui.ch"   //L3W

MEMVAR oDB           //L3W
MEMVAR oDB1          //L3W
MEMVAR cTableName    //L3W
MEMVAR cNewTable     //L3W
MEMVAR lOpened       //L3W

MEMVAR sql1

Function Main

hmg3( .t. )
HbQt_ErrorSys()

PUBLIC sql1 := nil   //L3W
other type of error are

Code: Select all

sql1.center()     //L3W
sql1.activate()   //L3W
and the other type

Code: Select all

function browsefordbf
local fname                //L3W := sql1.dbfname.value
local structarr            //L3W := {}
I can't compile your example
Luigi from Italy
www.L3W.it
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: REALLY IMPORTANT: is anyone interested in HMG4 ?

Post by Rathinagiri »

:)

Yes. But I could compile and run it with -w0 switch. I am sure my programming style should change. That would be for starting a new project in HMG4.

However, for existing projects I think -w0 will be helpful.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: REALLY IMPORTANT: is anyone interested in HMG4 ?

Post by l3whmg »

Hi Rathinagiri.
I'm working on it.
But please tell me if your problem is about "to compile" or about HMG4.
rathinagiri wrote:However, for existing projects I think -w0 will be helpful.
Clipper and Harbour are the same? Yes, but Harbour compiler is most powerfull then Blinker or Rtl, etc. IMHO, the usage of new options can help you to catch some "problems" and keep your project aligned with this compiler.

On the other hand, you can change and customize options within your batch commands.
Every time I download HMG4 I must/want change the standard batch commands....

For example adding other helpfull options (little example)

Code: Select all

SET PRGFLAG=-w3 -es2 -gtgui
SET WORKDIR=.\Temp
...........
HBMK2 -oFileName.exe -gui -prgflag=%PRGFLAG% -strip -trace -icon=your.ico -workdir=%WORKDIR% FileSource > %HRBLOG% 2>&1
-w3 and -es2 to keep a good code. I always recommended (on this forum many times) to use these to solve problem about Harbour/Clipper syntax. Mr Pritpal has recommended use of it regarding library compilation.
-strip to strip binaries
-workdir to prevent creation of a lot temporary working directory (..\Document and Settings\..... ) within your system directories, ecc.
- I recommended to everyone to use ".hbp" and ".hbc" files for your little/big project instead a generic "hbmk.hbm" file

So, with "HMG4" (see demo) these are not adopted: why?
But I see the "-run" option, but I think it's dangerous. Many times, I got a crash because my AV don't wants handle in a right way the new program and its dependencies.....and I removed it

Well, I'm working on your program.

Cheers
Luigi from Italy
www.L3W.it
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: REALLY IMPORTANT: is anyone interested in HMG4 ?

Post by Rathinagiri »

Thanks Luigi.

My problem is not regarding compilation.

I wanted to know why progressbar in my code is not working. That's all.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: REALLY IMPORTANT: is anyone interested in HMG4 ?

Post by l3whmg »

Ok, I'm investigating
Cheers
Luigi from Italy
www.L3W.it
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: REALLY IMPORTANT: is anyone interested in HMG4 ?

Post by l3whmg »

Hi Rathinagiri.
I found the problem. I will do a commit, but you can try by your self.

Inside hmg.ch search DEFINE PROGRESSBAR....
Probably you will find

Code: Select all

Wth Object [<varname> :=] With Object PROGRESSBAR.......
You must change in

Code: Select all

Wth Object [<varname> :=] PROGRESSBAR.......
In attachement what I change/made to try your program.

ASAP I will commit.

Best regards
Attachments
xRathi.zip
you program
(4.96 KiB) Downloaded 239 times
Luigi from Italy
www.L3W.it
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: REALLY IMPORTANT: is anyone interested in HMG4 ?

Post by Rathinagiri »

Thanks Luigi. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: REALLY IMPORTANT: is anyone interested in HMG4 ?

Post by l3whmg »

Hi Rathinagiri
I done a commit viewtopic.php?f=32&t=1777&p=18193#p18193

Cheers and many thank to you
Luigi from Italy
www.L3W.it
Post Reply