Migrate application to 32bit

298 views
Skip to first unread message

Jack H.

unread,
Jan 3, 2022, 12:55:05 AM1/3/22
to Harbour Users
I would like to introduce myself.

Jacob is my name. I was born in 1953. Still fresh!  My mother language is German. Now I am retired and enjoy the retired life. Half in Switzerland, half in Thailand. Motorcycle touring in Europe is my second hobby.  

In the early 90's I created an application for my company in dBase and then in Clipper. I have maintained this application until today. Even after my active time in the company. The topic occupies me and I have fun with it. Not to earn money.

Now it is time to migrate this application to 32bit. I decided to use Harbour. Simple, friendly and a great community. And, many thanks to the developers of this open source project.

In the first step I want to migrate my application in console mode 1:1 stable to Harbour. Maybe later with a graphical user interface. Who knows?

For a beginner like me it is not easy to find the right way. There are so many Harbour versions. I don't want to get into a dead end.

Which version is up to date and robust? Where to download?
Which additional library can you recommend?

Would be great if someone could support me.

New Year greetings from Thailand, Jacob

Harbour1.jpg

Auge & Ohr

unread,
Jan 3, 2022, 2:58:45 AM1/3/22
to Harbour Users
hi,

i use HMG Contribution
http://www.hmgforum.com/app.php/download

it include IDE, 2-Way Formdesigner and use MingGW Compiler and have a lot of (working) Demo Code.
if you want "more" try MiniGUI Extended Version using BCC Compiler.

! Note : MingGW use ".a" and BCC ".LIB" as Extension. LIB(s) are NOT compatible

when use Console Modus you might add
REQUEST HB_GT_WIN_DEFAULT           // Console

gruss aus Hamburg
Jimmy

Bob Burns

unread,
Jan 3, 2022, 4:08:34 AM1/3/22
to harbou...@googlegroups.com

Hi Jacob

Like you I have a (non commercial in my case) text based command line application that started out in the days of dBase and then Clipper. I now use Harbour 3.2 which I find convenient, stable and easy to use under Windows 10. However you may need to change your Windows screen resolution to get the application to use most of the screen. My Windows installation is set for 1920 x 1080 but for my Harbour application I switch to 800 x 600.

https://harbour1.software.informer.com/3.2/

My application is used for amateur radio contest logging and I had considered converting it to a GUI based application when time allows but I do find the keyboard based user interface to be much faster than a mouse based interface.

Best wishes

Bob

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/939ac4aa-0f2c-4198-baac-7deb95de97ffn%40googlegroups.com.

Francesco Perillo

unread,
Jan 3, 2022, 4:09:39 AM1/3/22
to harbou...@googlegroups.com
Hi Jacob. 
Have a look at this thread I wrote years ago porting a clipper application to Harbour. I believe it will be easy but all depends on the use of external libraries that may not exist I Harbour. 

You don't say anything on the application so it is difficult to give hints but my idea is to port it as-is to Harbour then, if strictly necessary, add a guide front-end. 
Feel free to ask.


Francesco 

José M. C. Quintas

unread,
Jan 3, 2022, 9:05:51 AM1/3/22
to harbou...@googlegroups.com

Use Harbour 3.2, download the nightly version.

First step, a console application.

Next step, you can add -gtwvg on compilation, and have an automatic setup of window size.

Do not began with a GUI library, except if you are sure that you have "your GUI". On GUI, source code is not compatible between GUIs, and if you decide change the GUI library, you will need to rewrite all.

Note that:

on Clipper:  Clipper is the compiler.

on Harbour: Harbour generates C source code, and compiler is a C compiler. mingw includes gcc and is the default compiler. HBMK2 simplify this work, users forgot that exists a C compiler.


I like and use Harbour 3.4, a fork/variant, but it do not have last added Europe codepages, not a problem for my use.


On Harbour you do not need to use 25 lines X 80 columns, but first step is SetMode(row,col), or it will use console configuration, 1000 lines if this is console configuration. I use SetMode(40,120).


You can use same source code as Clipper, and add Harbour features later.


José M. C. Quintas

Hurricane

unread,
Jan 3, 2022, 9:52:41 AM1/3/22
to Harbour Users
Hi,

Any tool, use only the official source and version: Harbour 3.2
already include C compiler and hbmk2 utility
Just add the hb32\bin folder to the path (remove any settings for Clipper).


To rewrite your screens in graphical mode with Harbour, use www.Xailer.com
It is the only professional tool, robust, productive, stable, intuitive... after installing it includes great documentation, +130 examples.
It has a FREE and commercial version. official forum: forum.xailer.com
(I know all the GUI, it doesn't make sense to use any other one).

regards,
Hurricane

Jack H.

unread,
Jan 9, 2022, 11:39:14 PM1/9/22
to Harbour Users
Good afternoon guys

Thank you for your support. I have now come a long way with the implementation of Clipper in Harbor. 
I chose HMG. Thanks Jimmy!
I was amazed that so many libraries already exist in Harbor. Is very good. hbct.hbc, hbnf.hbc, hbblink.hbc.
Thanks again to everyone who has helped me so much.

Greetings Jacob

Auge & Ohr

unread,
Jan 10, 2022, 7:29:57 AM1/10/22
to Harbour Users
hi Jacob,

if you have Question join HMG Forum

Main Language is Spanish but you can write your Question in in English.

---

after you have install HMG i recommend to assign IDE ( Unicode ) to Extension *.HBP
you will find *.HBP in almost every Sample Folder. when DblClick it will "load" Project in Folder

for you own Source create a Folder "ABC" under "Root" of HMG where you have installed it (default C:\HMG.3.5 )
create for each Project a new Folder under "ABC"  Folder

copy all *.PRG into new Folder and type
DIR *.PRG /B > PROJECT.HBP
Dblclick on PROJECT.HBP and "declare" which PRG is MAIN
press F5

now you will get Message which tell you what is going on

TIP :
#INCLUDE "HMG.CH"
REQUEST HB_GT_WIN_DEFAULT           // Console
PROCEDURE MAIN()

Jimmy
Reply all
Reply to author
Forward
0 new messages