What is the futur of xHarbour

239 views
Skip to first unread message

ohaldi

unread,
Feb 10, 2025, 10:41:12 AMFeb 10
to Harbour Users
I've been using xHarbour for a few years and have used GTWVG to add a few GUI screens here and there.
My application has a long history with xHarbour. However, I don't see any news about this variant anymore. Is it complicated to switch from xHarbour to Harbour?

José M. C. Quintas

unread,
Feb 10, 2025, 11:02:30 AMFeb 10
to harbou...@googlegroups.com

It is very difficult to answer this question, because a user do not use all the functions of another user.

I  do not know why to change, if you do not have problems with it, or if you do not need new features.

It is easy to change, but you need to make your own tests about your source code and features used.

A quick test:

hbmk2 *.prg *.rc -otest gtwvg.hbc

It is needed caution about setup, but you can have harbour and xharbour at same time on machine.

If needed, you can use #ifdef __XHARBOUR__ on source code to fine adjust during conversion, and use allways same source code.


At this momment, I use on same exe, on windows:

harbour 3.2, multithread, gtwvg, hwgui, fivewin, ADO, DBFCDX, MySQL


José M. C. Quintas



Em 10/02/2025 12:41, ohaldi escreveu:
I've been using xHarbour for a few years and have used GTWVG to add a few GUI screens here and there.
My application has a long history with xHarbour. However, I don't see any news about this variant anymore. Is it complicated to switch from xHarbour to Harbour? --
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://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 visit https://groups.google.com/d/msgid/harbour-users/b992fbdd-481b-43ac-a614-7aad36fa7f3en%40googlegroups.com.

Anderson Cardoso Silva

unread,
Feb 10, 2025, 11:58:14 AMFeb 10
to harbou...@googlegroups.com
You will find some differences in win32prn() and tbrowse() as I already noticed.
In that cases you can manage this situation with #ifdef as Quintas already said.


Daniele Campagna

unread,
Feb 10, 2025, 12:58:10 PMFeb 10
to harbou...@googlegroups.com

A problem exists for those (like me) who have used gtwvw. Harbour has its version of gtwvw but it's not production ready (AFAIK).

The only way in this case is IMO to switch to gtwvg. But it's not exactly the same. In my experience it is slow, while gtwvw is very quick, other than of course the function names are different, gtwvg is not multi-window, etc.

And at this point, having to touch the user interface, one can question the entire idea to emulate the CLI interface via Windows AND put graphic elements here and there. Yes this is the only option to reuse ALL of the old CLI code "as-it-is", just adding a number of functions to manage windows, fonts, etc. At the time, gtwvw was elegant and very stable: a fantastic work. I converted my Clipper programs giving them an appearence a little bit more "modern" very quickly. gtwvw allowed me to open a separate window with its own fonts for the browse, use buttons, toolbars, menu windows-style etc. A big improvement.

BUT that was many years ago. Today, better maybe is to switch to some solid and modern windows GUI lib for Harbour (or xHarbour).

My 2 cents

Dan

José M. C. Quintas

unread,
Feb 10, 2025, 1:50:53 PMFeb 10
to harbou...@googlegroups.com

GTWVG on harbour is not the same as xharbour, can be used windows api, and multi-window.

Check this video

https://www.youtube.com/watch?v=B0GZRwtNPJA

But here I am using gtwvg, fivewin and hwgui on same exe

José M. C. Quintas

Daniele Campagna

unread,
Feb 10, 2025, 5:19:36 PMFeb 10
to harbou...@googlegroups.com

HWGUI + GTWVW with xHarbour also run fine in the same exe. Honestly, never tried GTWVG,  I was referring to GTWVT, sorry.

Dan

Francesco Perillo

unread,
Feb 11, 2025, 6:16:09 AMFeb 11
to harbou...@googlegroups.com
Hi,
may I ask you why do you mix different technologies like gtwvg, finewin and hwgui ?


José M. C. Quintas

unread,
Feb 11, 2025, 2:19:36 PMFeb 11
to harbou...@googlegroups.com

Why not ?

From my point:

- It is all harbour source code

- Multithread is like several EXEs, each thread/EXE can use a different library.


What is the problem:

fivewin and minigui are not compatible because internal functions with same name but different work.

I can mix gtwvg, fivewin and hwgui

I can mix gtwvg, minigui and hwgui

I can't mix mingui and fivewin


What is the advantage:

If I need a quick solution, I have the solution, no mattter about library, and do not need another EXE.


Notes:

I am beginner on GUI, most used code continues gtwvg.

I do not mix source code from libraries on same PRG.

dialog gtwvg uses gtwvg source code.

dialog hwgui uses hwgui source code

dialog fivewin uses fivewin source code.

from gtwvg.hbc I remove the headers, to do not add for all PRGs


Another test, without multithread, and using single library is dlgauto

https://github.com/JoseQuintas/dlgauto

Compile using hwgui, hmg 3, hmg extended, oohg, hwgui or fivewin.

It is an automatic application for tests purpose.

I add it as library to application for tests, as example to test mix with few extra source code.


José M. C. Quintas

Reply all
Reply to author
Forward
0 new messages