Page 17 of 54

Re: I want to be a HMG Poster

Posted: Fri Jun 11, 2010 3:37 am
by Rathinagiri
It's ok Chenmin.

Re: I want to be a HMG Poster

Posted: Tue Jun 15, 2010 4:10 pm
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.

Re: I want to be a HMG Poster

Posted: Tue Jun 15, 2010 4:38 pm
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.

Re: I want to be a HMG Poster

Posted: Tue Jun 15, 2010 5:05 pm
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.

Re: I want to be a HMG Poster

Posted: Tue Jun 15, 2010 11:32 pm
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

Re: I want to be a HMG Poster

Posted: Wed Jun 16, 2010 4:02 am
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. :)

Re: I want to be a HMG Poster

Posted: Wed Jun 16, 2010 8:05 am
by esgici
Hi Shuvro

Welcome aboard :D

Regards from Turkiye :)

--

Esgici

Re: I want to be a HMG Poster

Posted: Wed Jun 16, 2010 10:28 am
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.

Re: I want to be a HMG Poster

Posted: Thu Jun 24, 2010 12:10 pm
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

Re: I want to be a HMG Poster

Posted: Thu Jun 24, 2010 12:18 pm
by Rathinagiri
Hi Qatan,

Welcome to HMG forum. Now you can post in all the areas. :)