Clipper 5.3 to HMG Conversion

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
SeaHawk
Posts: 4
Joined: Mon Mar 07, 2011 12:14 am
Location: South Florida, USA
Contact:

Clipper 5.3 to HMG Conversion

Post by SeaHawk »

Hello All,
I have the following Clipper 5.3 Development Directory Structure

C:\BLINK\ BLINK 3.30
C:\CLIP5\ CLIPPER 5.3

Project:
C:\RK\LIBRARY\
-->CL520MID.LNK
-->CMX.LIB COMIX LIBRARY
-->FLEX52.LIB FLEXFILE LIBRARY
-->NANFOR.LIB NANOFORUM LIBRARY

C:\RK\OBJ\
-->CLOCK.OBJ
-->ONTICK.OBJ
-->PSCT_OVL.OBJ
-->PSCT_RT.OBJ

C:\RK\OUT\
-->RK.EXE OUTPUT EXECUTABLE

C:\RK\PRG\
-->CLOCK.C
-->ONTICK.C
-->FLEXFILE.CH FLEXFILE HEADER FILES
-->FLEXRDD.CH FLEXFILE HEADER FILES
-->MISC.CH
-->RK.CH RK HEADER FILE
-->C.BAT SET ENVARS & CALL RMAKE
-->CMX.LNK COMIX LINK FILE
-->DON.LNK MAIN LINK FILE
-->ERRORLOG.PRG
-->GETSYS.PRG
-->RK.PRG MAIN() MODULE WITH TOP MENUS
-->RK????.PRG OTHER PROJECT MODULES
-->FCM.RMK MAKE FILE

The C.BAT file:
@echo off
set PATH=C:\BLINK;C:\CLIP5\BIN;%PATH%
set LIB=C:\CLIP5\LIB
set INCLUDE=C:\CLIP5\INCLUDE
set PLL=C:\CLIP5\PLL
del *.obj
rmake fcm

I am trying to use HMG 3.0.34 IDE to get this project to Win32 Platform.

I created a separate C:\RK32\ PROJECT folder with \INCLUDE, \LIBRARY, \OBJ, \OUT AND \PRG containing all the necessary files. I have listed the modules, the includes and libraries, but I am getting a lot of undefined reference errors.

Any help to get this going is greatly appreciated.

Regards,

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

Re: Clipper 5.3 to HMG Conversion

Post by esgici »

SeaHawk wrote:...
I am trying to use HMG 3.0.34 IDE to get this project to Win32 Platform.
I created a separate C:\RK32\ PROJECT folder with \INCLUDE, \LIBRARY, \OBJ, \OUT AND \PRG containing all the necessary files. I have listed the modules, the includes and libraries, but I am getting a lot of undefined reference errors.
...
Hi SeaHawk

For beginning, converting a Clipper Project to HMG isn't best way, IMHO no good one too.

Instead, try begin with little samples (there are a lot of in the HMG package and in the forum). After a little exercise process, you will find yourself ready to writing a real project. At this time begin to rewrite your clipper application by beginning. Because there isn't any easy way to convert console (DOS) applications to GUI.

You can compile a Clipper project as a Win32 Console mode application and this is possible with IDE. Differences are :

- There isn't a "link" process (it is automatically made within build process), so we haven't requirement a link script.
- Also doesn't require care about intermediate files such as .pll, .ovl, .obj, .c etc.
- Regarding .lib file; as Rathinagiri noticed, HMG use .a type lib file. no .lib standard. If you have source code of these library files, you can produce your .a type lib file(s) or inlude these library modules directly your project. Otherwise you will need a .lib to .a library file converting utility.
- This was bad news. Good one is: Nanfor library is (almost) completely included into Harbour. I'm not sure but probably Flex RDD also completed and included into Harbour.

As a experienced Clipper programmer, surely you will get over all these points in a short time.

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: Clipper 5.3 to HMG Conversion

Post by SeaHawk »

Thank you esgici and rathingiri!

It was not my intention to go directly to HMG GUI with this app, just to Win32 console mode for now. Thank you for the reference to the samples, I have looked at a few and with my Visual Studio experience should have no problem when that phase is started.

I will have to make further tests to see if I can get this to compile correctly. I will have to search for the Harbour FlexFile and Comix ports to see how that went.

I will keep you all posted.

Thanks again!

SeaHawk
CCH4CLIPPER
Posts: 140
Joined: Tue Mar 03, 2009 8:59 am

Re: Clipper 5.3 to HMG Conversion

Post by CCH4CLIPPER »

Hi Seahawk

You may want to take a look at the various relevant articles at http://cch4clipper.blogspot.com

Cheers
CCH
Post Reply