I want to be a HMG Poster

New members who wish to post and participate in HMG Forum, please introduce yourselves in this forum by starting a new thread.

Moderator: Rathinagiri

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

Re: I want to be a HMG Poster

Post by Rathinagiri »

It's ok Chenmin.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
shuvro_basu
Posts: 1
Joined: Tue Jun 15, 2010 7:17 am
DBs Used: DBF, MySQL, ODBC
Location: India

Re: I want to be a HMG Poster

Post by shuvro_basu »

Hello,

This is Shuvro from Chennai, India. I have used Clipper in the past (about a decade ago) and now my interests are renewed in the language and also HMG too.
cocoking
Posts: 46
Joined: Tue Jun 15, 2010 1:15 pm
Location: Malabang, Lanao del Sur

Re: I want to be a HMG Poster

Post by cocoking »

Hello. Thank you for sharing your ideas, efforts and talents with the programming community.

My interest in Harbour/HMG lies in converting Clipper 5.2e applications into Windows-based (printing, gui, new features), and creating "bridge" programs between 2 applications with different data formats. I have intermediate knowledge in Clipper but a total beginner in Harbour/HMG and Windows programming.

Please allow me my initial questions:

My first project is a small program but I'm getting errors like: undefined reference to HB_FUN_FT_DEFAULT, HB_FUN_FT_INT86. These functions came from NANFOR.LIB. So I included LIBHBNF.A (renamed to LIBHBNF.LIB, not sure if this is a correct move) so that the compiler/linker may find it. But I still get errors.

Are both .LIB and .A valid library files (with interchangeable extension names)?

Second question, is there a tool that I can use to see/list the available functions in a library file (.LIB and .A)? Similar to Herb Rose's LIBRA.EXE, or LIB.EXE of Microsoft?

I'd like to print a copy of all the functions and commands (with brief description only, to save on paper, hopefully less than 50 pages only). Any ideas where I can source the data?

Thank you very much.
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: I want to be a HMG Poster

Post by Rathinagiri »

Welcome aboard cocoking.

If you want to link the functions in nanfor.lib, you have to compile using harbour-mingw combination to create nanfor.a

Renaming a .lib file into .a file won't workout.

For your second question, I don't think so.

Docs and help files are available for both HMG and Harbour as well.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: I want to be a HMG Poster

Post by esgici »

cocoking wrote:Hello. Thank you for sharing your ideas, efforts and talents with the programming community.
My interest in Harbour/HMG lies in converting Clipper 5.2e applications into Windows-based (printing, gui, new features), and creating "bridge" programs between 2 applications with different data formats. I have intermediate knowledge in Clipper but a total beginner in Harbour/HMG and Windows programming.
Hello cocoking, welcome aboard :)

Greeting from Turkiye :)

cocoking wrote:Please allow me my initial questions:

My first project is a small program but I'm getting errors like: undefined reference to HB_FUN_FT_DEFAULT, HB_FUN_FT_INT86. These functions came from NANFOR.LIB. So I included LIBHBNF.A (renamed to LIBHBNF.LIB, not sure if this is a correct move) so that the compiler/linker may find it. But I still get errors.

Are both .LIB and .A valid library files (with interchangeable extension names)?
As our friend Rathinagiri mentioned, renaming library file by extension isn't a correct way, because internal structure of two library files are different. Re-compiling from source code, re-linking and re-libbing too may not be sufficient for your expectations; probably may be for only console mode.

As far as I know, Nanfor.lib is superseded by CT.lib and (almost) all modules of CT.lib are re-written in Harbour. So your need is find out Harbour or HMG doc; not lib-modules list.

For example :

If function of FT_DEFAULT() function of Nanfor.lib is retrieve and optionally change the current default drive; you have use SET function of Harbour:

Code: Select all

  <cCurrentDefaultDrive> := SET( _SET_DEFAULT )  // for to retrieve

and

Code: Select all

  SET( _SET_DEFAULT <cNewDefaultDrive> )           // for to set
(Sorry, my Norton Guide for Nanfor.lib doesn't include FT_INT86, are you sure this is a Nanfor function?. May be my guide is obsolete)
cocoking wrote:Second question, is there a tool that I can use to see/list the available functions in a library file (.LIB and .A)? Similar to Herb Rose's LIBRA.EXE, or LIB.EXE of Microsoft?

I'd like to print a copy of all the functions and commands (with brief description only, to save on paper, hopefully less than 50 pages only). Any ideas where I can source the data?
Yes, I'm remembering such utils ;)

Sadly, I don't know any 'modern' version of its, and in my opinion, a only module names list can't help you :(

Need at least a brief description first and second, module names may be different between old and modern libraries.

In other hand, at beginning, converting existing DOS program to windows or writing new ones under old habits may be painful. Instead, please try build, run and understand HMG samples.

Surely, after a short work on this (really a rich set of) HMG samples you will see how simple programming with HMG :D

Happy HMG'ing :)

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: I want to be a HMG Poster

Post by Rathinagiri »

shuvro_basu wrote:Hello,

This is Shuvro from Chennai, India. I have used Clipper in the past (about a decade ago) and now my interests are renewed in the language and also HMG too.
Hai Shuvro Basu,

Welcome aboard. So, I found a person so near to my place. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: I want to be a HMG Poster

Post by esgici »

Hi Shuvro

Welcome aboard :D

Regards from Turkiye :)

--

Esgici
Viva INTERNATIONAL HMG :D
cocoking
Posts: 46
Joined: Tue Jun 15, 2010 1:15 pm
Location: Malabang, Lanao del Sur

Re: I want to be a HMG Poster

Post by cocoking »

Thank you very much, rathinagiri and esgici, for the very warm welcome, and prompt/helpful replies.

Pardon me for posting more questions as I am still trying to find my way in Harbour/HMG.

I would like to use built-in functions instead of “reinventing the wheel” but I have not yet found a site discussing Harbour libraries.

For instance:

1. Isn’t LIBHBNF.A a Harbour port of Clipper’s Nanfor? Now, how do I know what functions are available in LIBHBNF and other libraries in \HMG\HARBOUR\LIB?
2. What libraries are automatically included in the compile/link process?

By the way, FT_INT86 is included in Nanfor (mine is 3.05) and is used by functions to execute a software interrupt.

Thanks again. I believe I will learn a lot from you and the other members of this forum.
User avatar
Hazael
Posts: 109
Joined: Thu Jun 24, 2010 11:37 am
Location: France

Re: I want to be a HMG Poster

Post by Hazael »

Hello,

I'm a former Clipper Summer'87 student from 1990.
Recently I found xHarbour and right now I am using Harbour from SVN with MingW32.
Trying to develop a simple and small ERP in CUI mode using GTWVT.
Interested in HMG forum because I found it to be one of the most active places discussing about SQLite and I really want to use it in place of DBF/CDX.
I will post about SQLite to find help with more experienced users.
Thank you for the opportunity.
Regards,

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

Re: I want to be a HMG Poster

Post by Rathinagiri »

Hi Qatan,

Welcome to HMG forum. Now you can post in all the areas. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply