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
mol
Posts: 3777
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: I want to be a HMG Poster

Post by mol »

qres wrote:Hi all:)
I live in Torun (Poland).
I write in the Clipper. Clipper is the best language for desktop applications (in my opinion).
Sorry, my English is weak, but it should suffice to reading:).
HMG appears to be a good continuation CLIPPER for database applications.
I hope that I can "make" something useful for the rest of the lovers of this language....
Hi qres!
I'm from Myszków, Poland.
I think, you've choosen the best way...
flavio.veloso
Posts: 19
Joined: Mon Feb 14, 2011 5:16 pm

Re: I want to be a HMG Poster

Post by flavio.veloso »

Sr (s). Good afternoon.

My name Flávio Veloso, I am Brazilian and work with since the Liguang xbase clipper summer 87, now use the site xHarbour www.xharbour.org semi graphical interface and how to gtwvw because we have not had to migrate our sources SHARINGTIME advantage of about 95 % of them to a 100% graphical interface as MiniGUI, or Hwgui Fivewin but we are doing this behind.

Sincerely,

Flávio Veloso.
Fortaleza - Ce - Brasil.
User avatar
SeaHawk
Posts: 4
Joined: Mon Mar 07, 2011 12:14 am
Location: South Florida, USA
Contact:

Re: I want to be a HMG Poster

Post by SeaHawk »

Hello to all from South Florida, USA.

I am originally from Jamaica, but have lived in UK and USA for awhile now.

I started on IBM mainframes a long time ago programming in PL/1, RPG and Assembler. Moved through Minis from DEC and Prime writing Assembler code. Since PCs everything from BASIC to Visual Studio VB and C++.

I inherited a client with a Clipper 5.2 Inventory Management System back in 1997 and have been maintaining and modifying it since. It has been doing the job for them so they have been reluctant to spend money to bring it into the 21st century before this. With the advent of Win32 as you know there have been certain frustrations when running that code on Win2K and WinXP. I have managed to keep it going but with Vista(uggh) and Win7 as their future platforms I decided to take a look at what was out there for Clipper apps.

I came across Harbour and HMG 3.0.34, downloaded HMG 3.0.34 with the IDE and thought this would be an excellent move forward. I just had a few questions as to how to setup as I was using Clipper 5.3 and BLINK 3.30. I have BAT file for Clipper, RMK and LNK files to complete the job. I would appreciate any help and input from the community.

I would like to get the project running in the Console mode initially and later move on to something a little more fancy.

Again, all help would be greatly appreciated.

Thanks,

SeaHawk
User avatar
Rathinagiri
Posts: 5480
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,

First of all a Hearty welcome from India. Now you can post your queries anywhere in the forum as you have become a HMG poster.

Now, coming to the part of query, IMHO, you need not change a single line of code and you will be astonished to see the improvements made in Harbour. :)

Just put all the .prg names in a text file. Name it with .hbp extension. Open the file using HMG-IDE. Use IDE to build in console mode (Use configuration tab). If you come across any problems please post your queries here.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
mol
Posts: 3777
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: I want to be a HMG Poster

Post by mol »

Hi SeaHawk!
Remember to declare main module and function main within. It wasn't necessary in clipper 5.2!

Welcome from Poland!
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 SeaHawk!

Welcome from Turkiye!

Happy HMG'ing :D

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
SeaHawk
Posts: 4
Joined: Mon Mar 07, 2011 12:14 am
Location: South Florida, USA
Contact:

Re: I want to be a HMG Poster

Post by SeaHawk »

Thank you rathinagiri, mol and esgici! I appreciate the welcome.

I guess that I should post my questions under the appropriate topics, but they are quite simple. I already have a main() function so no problem there.

I have only three questions:

1. My RMK file has two (2) .c programs listed. Where should I put these files?
2. My LNK file is a little more complex as there are includes for FlexFile & Comix, etc.

The PRG files do not pose a problem, but not quite sure how to put the others together.

I can post these if that would be a help.

3. I had downloaded HMG 3.0.34 but should I use HMG 4 instead?

Thank you all again.

Regards,

SeaHawk
User avatar
Rathinagiri
Posts: 5480
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,

My answers for your questions:

1. There are two ways to include external/'C' functions.

a. Those 'C' functions can be included inside a prg file using # pragma entries. For example, I am giving a small code for calling a Harbour function TEXTBOXSETSEL, I am writing a 'C' function. So, whenever I call textboxsetsel() inside Harbour, this 'C' code will run.

Code: Select all

#pragma BEGINDUMP
 
     #include <windows.h>
     #include <commctrl.h>
     #include "hbapi.h"
     #include <wingdi.h>
 
     HB_FUNC ( TEXTBOXSETSEL )
     {
        HWND hWnd1;
        hWnd1 = (HWND) hb_parnl (1);
        SendMessage((HWND) hWnd1,EM_SETSEL, (WPARAM)(int) hb_parni(2),(LPARAM) (int) hb_parni(3));
     }
 
     #pragma ENDDUMP
b. You can create a library file separately and combine the same in the link process. You can see many examples. Please see c:\hmg\source\subdirectories like graph, ini, etc. Each folder is having .prg files, .c files and .bat file to create a library file. This library can be included in the link process using HMG-IDE.

2. Regarding FlexFile and Comix, I don't know. If you have source code, yes you can compile here too. Otherwise try to convert the library files into MingW library (.a) files.

3. I think you can download HMG 3.0.35, the latest stable version. HMG 4 is in Alpha stage. It can not be used now for production.

Again I wish to thank for your interest in HMG. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
matthew
Posts: 3
Joined: Mon Mar 07, 2011 1:24 pm
Location: England
Contact:

Re: I want to be a HMG Poster

Post by matthew »

Hi everyone my name is Matthew, I'm 33 years old and come from England.

I'm not a professional programmer but I've been programming at an amateur level since I was a child at Junior School.

I've never used Clipper before and only heard about Harbour & HMG this morning when I read a post about them on another forum.

In the past I've mainly used BASIC or C but I'm always trying out new programming languages.
User avatar
Rathinagiri
Posts: 5480
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 Mathew,

Welcome from India.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply