I am about to install Harbour, I have questions...

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

vmars316
Posts: 6
Joined: Sat Jan 21, 2012 5:47 am

I am about to install Harbour, I have questions...

Post by vmars316 »

Greetings,
Windows7:
Sorry to ask so many questions, but I want to start out right.

I am about to install Harbour, so I will start by asking:
I notice that the following harbour/hmg sites have different browser logos:
posting.php?mode=post&f=5
http://tech.groups.yahoo.com/group/harb ... sage/23263
http://www.harbour-project.org/third-party.html#GUIFree
https://sites.google.com/site/hmgweb/
http://www.hmgextended.com/files/CONTRIB/
1) Are these each by a diffrent group of people?

Here: http://www.harbour-project.org/third-party.html#GUIFree
It talks about MiniGUI: "Harbour MiniGUI (HMG) is a xBase WIN32 / GUI Development System based on Harbour MiniGUI library"
2) Pls, What is "xBase WIN32"? Is that regular windows or ?
Is there GUI Builder for regular windows? HwGUI ? Is a cross-platform GUI library
for Harbour, it is written on C and Harbour.
And where does HMG IDE fit into the mix?

3) Perhaps I should asked this first. Does Harbour create/output/executable object files.
If not is there a program that takes Harbour-output and turns it into an *.exe file?

4) http://www.hmgextended.com/files/CONTRIB/
Pls, how does this HmgExtended fit in with all the other hmgStuff?

5) https://sites.google.com/site/hmgweb/tutorial
Is this valid DOCs for Harbour. If not, Please aim me to the right spot.

Also, Can you aim me at some DOCs that show me HowTo Install these programs?

Thank you very much!...Vernon
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: I am about to install Harbour, I have questions...

Post by esgici »

Hello Vernon,

welcome aboard :)

It's normal such confusions at the beginning, please be calm down first ;)

"xBase" is generic name of database systems and a programming language based historically dBase. Since there are many commercial and free product in the area, this generic name used generally for express all of them.

One way come dBase -> Clipper and continuing by Harbour.

As declared on the top of main page off official Harbour site; The Harbour Project is a Free Open Source Software effort to build a multiplatform Clipper language compiler.

Well, Clipper was "text based" language and compiler, so Harbour too was the same at the beginning. For now the compiler has (beside to many extra specialities) GUI features. But before these feature added, HMG born and we are here since this happy event.

Such as almost every successful open source project, Harbour and HMG too have forks; so, beginners may be confused at first.

In summary, here, the HMG Forum, is the forum for user of the GUI library, originally created and developped by Roberto Lopez, for Harbour compiler. Although Harbour is multi platform compiler, HMG is Windows only library; so "xBase Win32" express this speciality; and yes, it's "pure" Windows" .

By reading forum archive you may access al of these information, I work to summarize for you.

Regarding installation : You don't need separately install Harbour nor anything else, simply download from here last stable version of HMG and run setup program, that is all 8-)

Regards from Turkiye :)

Happy HMG'ing :D

--

Esgici
Viva INTERNATIONAL HMG :D
vmars316
Posts: 6
Joined: Sat Jan 21, 2012 5:47 am

Re: I am about to install Harbour, I have questions...

Post by vmars316 »

Greetings,
I installed hmg.3.0.40 from where you specified and,
and I took the default C:\hmg.3.0.40\
I am trying to run the "file:///C:/hmg.3.0.40/DOC/data/tutorial.htm" .
Unfortunately it doesn't tell me what to do,
to start a NewProject/NewProgram.
So, just guessing I clicked on NewProject.
But I get an error msg as follows:
"Invalid Project Name/Path (Spaces and special characters not allowed)"

Is it because "I took the default C:\hmg.3.0.40\" ?
Is it the "." (period) in the PathName that is the problem ?

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

Re: I am about to install Harbour, I have questions...

Post by esgici »

Hello Vernon

The message you got

Invalid Project Name/Path (Spaces and special characters not allowed)

express the problem: probably your defined (or selected) path for project file, have space(s) or special characters; for example you want place your project on your desktop ?

You may take a look to my blog for a quick start and some primer infos.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
danielmaximiliano
Posts: 2763
Joined: Fri Apr 09, 2010 4:53 pm
DBs Used: DBF
Location: Argentina
Contact:

Re: I am about to install Harbour, I have questions...

Post by danielmaximiliano »

vmars316 wrote:Greetings,
I installed hmg.3.0.40 from where you specified and,
and I took the default C:\hmg.3.0.40\
I am trying to run the "file:///C:/hmg.3.0.40/DOC/data/tutorial.htm" .
Unfortunately it doesn't tell me what to do
in the browser address bar paste is this : file:///C:/hmg.3.0.40/DOC/data/index.htm
HMG Reference (c)2002-2010 Roberto Lopez httpsites.google.jpg
HMG Reference (c)2002-2010 Roberto Lopez httpsites.google.jpg (64.09 KiB) Viewed 4263 times
but this paste this into your browser : file:///C:/hmg.3.0.40/DOC/data/tutorial.htm
vmars316 wrote:
to start a NewProject/NewProgram.
So, just guessing I clicked on NewProject.
But I get an error msg as follows:
"Invalid Project Name/Path (Spaces and special characters not allowed)"

Is it because "I took the default C:\hmg.3.0.40\" ?
Is it the "." (period) in the PathName that is the problem ?Thanks...Vernon
the examples work without any problem.

you may want to create a project folder that has spaces in the name, so will give that error.

Examples folder you can drag and drop the file .hbp or .prg on build.bat and compile the example of that folder.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
vmars316
Posts: 6
Joined: Sat Jan 21, 2012 5:47 am

Re: I am about to install Harbour, I have questions...

Post by vmars316 »

Hi danielmaximiliano ,

<<express the problem: probably your defined (or selected) path for project file, have space(s) or special characters; >>
Yes, all worked, when I setup my working Folder as
“C:\HMG-vm\vmProj01” .

<<you may want to create a project folder that has spaces in the name, so will give that error. >>
Yes, it was the “.” in Path.

Now I have another question:
I compiled a simply ‘Gui app. 1 Form, 1 textBox, 2 Buttons’,
that’s all. The .exe size for that is 1,966kb.
Is there a way to shrink that down??
How large would it be for just the Pcode?
And how large would be the Pcode-execute-Program?

For the exact same ‘Gui app. 1 Form, 1 textBox, 2 Buttons’
in HotBasic: source = 1k, the executable = 10k.
See attachment.

$APPTYPE GUI:

create frm1 as FORM
left=0: top=0
width=300: height=300
caption="My Text"
end create

create re1 as RICHEDIT
left=2: top=24
width=300: height=300
caption="My Text"
' onclick=re1_click
end create

create b1 as BUTTON
left=0: top=0
width=100: height=20
caption="My Text"
' onclick=b1_click
end create

create b2 as BUTTON
left=120: top=0
width=100: height=20
caption="My Text"
' onclick=b2_click
end create

frm1.ShowModal
END

I tried to Attach the hello.exe, but this forum wouldn't allow me.
I can email if you tell your email address.

...vm
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: I am about to install Harbour, I have questions...

Post by Rathinagiri »

Hi

You can zip and attach.

Regarding the size of the exe, it doesn't grow as the code grows. Even for a very big project with many source code files, the maximum exe size for me is 3 MB.

The minimum libraries required in MingW GCC might be the cause for the size of the exe file.

Have you used UPX to reduce the size of the exe file?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
vmars316
Posts: 6
Joined: Sat Jan 21, 2012 5:47 am

Re: I am about to install Harbour, I have questions...

Post by vmars316 »

<<Have you used UPX to reduce the size of the exe file?>>

I don't know what that is.
Thanks...vm
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: I am about to install Harbour, I have questions...

Post by Rathinagiri »

UPX is a free, portable, extendable, high-performance executable packer for several executable formats.

More information from here.

http://upx.sourceforge.net

It is already included in the Harbour Bin package. So, you can use it as well with the build.bat.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: I am about to install Harbour, I have questions...

Post by mol »

My big billing system as exe less than 6MB.
Smaller exe files were generated in version of HMB based on harbour 2.0.
From harbour 3, .exe files grown a little :D
Post Reply