U-Dbu the new concept to program on the web

359 views
Skip to first unread message

Charly 9000

unread,
Apr 30, 2023, 4:30:34 AM4/30/23
to Harbour Users
Hello friends, in this repository you will find an example program for the web made exclusively with harbour in which practically nothing of the traditional languages is used.

On the one hand I want to show with the program how it behaves at a functionality level and on the other it has all the code so that you can recompile it if you want.

https://github.com/carles9000/u-dbu

I expose it here because perhaps someone of you is interested in making the leap to the web, in an easy, fast and effective way.

Thank you.
Charly Aubia

Mario H. Sabado

unread,
Apr 30, 2023, 4:54:58 AM4/30/23
to harbou...@googlegroups.com
Thank you Charly for sharing your work with us.  Greatly appreciated.

Best regards,
Mario


--
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 on the web visit https://groups.google.com/d/msgid/harbour-users/be7f602c-1dcc-43cb-9739-1dde3eeb2b9cn%40googlegroups.com.

fdaniele

unread,
Apr 30, 2023, 4:56:45 AM4/30/23
to Harbour Users
boys
is a marvelous system, give it a try !!!!!!!!!
Daniele

Franz

unread,
Apr 30, 2023, 5:09:51 AM4/30/23
to Harbour Users
Could you indicate the correct procedure to be able to test your application. I downloaded app.exe but my pc (win10 64) replies that it cannot be run.
Thank you
Franz

Il giorno domenica 30 aprile 2023 alle 10:30:34 UTC+2 Charly 9000 ha scritto:

fdaniele

unread,
Apr 30, 2023, 5:11:13 AM4/30/23
to Harbour Users

if is the firewall, only accept

Sami Laham

unread,
May 3, 2023, 9:17:19 AM5/3/23
to Harbour Users
Thank you Charly for sharing your work with us.

Best regards,
Sami

Alain Aupeix

unread,
May 3, 2023, 3:06:58 PM5/3/23
to harbou...@googlegroups.com, Mario H. Sabado

Hi Charly,

I have clone u-Dbu and tried to build it under Xubuntu, and obvouisly, it fails.

alain@Gramps-JujuLand2:/opt/TuxPrograms/trunks/u-dbu$ hbmk2 app.hbp
hbmk2[app]: Avertissement: Impossible de trouver hbwin.hbc (référencé dans
            app.hbp)
hbmk2: Compilation des sources Harbour...
Harbour 3.2.0dev (r2303091450)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling 'app/app.prg'...
Lines 209, Functions/Procedures 8
Generating C source output to '.hbmk/linux/gcc/app.c'... Done.
Compiling 'app/api_security.prg'...
Lines 134, Functions/Procedures 4
Generating C source output to '.hbmk/linux/gcc/api_security.c'... Done.
Compiling 'app/api_structure.prg'...
app/api_structure.prg(1) Error F0029  Can't open #include file 'lib\uhttpd2\uhttpd2.ch'
hbmk2[app]: Error: Running Harbour compiler (built-in). 1
(/usr/bin/harbour) -n2 app/app.prg app/api_security.prg app/api_structure.prg app/api_indexes.prg app/api_select_dbf.prg app/api_users.prg app/api_repository.prg app/api_browse.prg app/api_dashboard.prg app/tdbf.prg app/system.prg -n -w1 -es2 -DHBMK_HAS_HBCT=1 -DHBMK_HAS_HBTIP=1 -DHBMK_HAS_HBFSHIP=1 -DHBMK_HAS_HBXPP=1 -DHBMK_HAS_XHB=1 -o.hbmk/linux/gcc/ -i/usr/include/harbour -i/usr/share/harbour/contrib/xhb -i/usr/share/harbour/contrib/hbct -i/usr/share/harbour/contrib/hbtip -i/usr/share/harbour/contrib/hbfship -i/usr/share/harbour/contrib/hbxpp

Does it run only under Windows ?

Is there a chance it will run under Linux ?

Thanks
A+
--

Alain Aupeix
Sites web : JujuLand | Pissobi-Lacassagne | Gadel
X.ubuntu 16.04 | H.arbour 3.2.0-1 (r2023-03-09 15:50) | Hw.gui 2.23-4 (r3213) | G.ramps 5.1.2


Charly 9000

unread,
May 4, 2023, 1:21:59 AM5/4/23
to Harbour Users
Alain,

At the moment and until the entire system is stabilized, it is only for MSVC64, sorry

C.

Maurizio la Cecilia

unread,
May 4, 2023, 2:07:14 AM5/4/23
to Harbour User Group
Hi Charly,
I'd try to recompile U-Dbu using MinGW 12.2 from MSYS2 and, despite of some warnings about the libraries differences from the expected format, it works flawlessy.
The incompatibility between MSVC and  MinGW lib formats are fatal only under some circumstances and maybe U-Dbu doesn't fall in them.
That should open new horizons also for *nix environments, I hope...
Thanks a lot for your effective contribution to the Harbour future.
Best regards.
--
Maurizio 

--
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.

Quique

unread,
May 4, 2023, 11:45:54 AM5/4/23
to Harbour Users
Hi

I have my own web engin to try to pass my onwn programs in fivewin, xailer, oohg and minigui, but my problem is use it with https, you have solved it?

Charly 9000

unread,
May 4, 2023, 2:50:45 PM5/4/23
to Harbour Users
Maurizio, 

thanks for the tests but for now we are playing with MSVC64, because I can't dedicate time to other compilers. When it is stable and the concept is fixed, next step will be new compilers...

C.

Charly 9000

unread,
May 4, 2023, 3:09:09 PM5/4/23
to Harbour Users
Quique,

Everything works perfectly with https. The U-Dbu example works with http because new users can quickly switch and compile without any problems. If you want to compile to work with https you need another library and dlls, in addition to generating certificates and that prevents other users from doing their tests more easily.

Https I would say that it is one more chapter when you prepare the final application for this environment.

The important thing is that the solution is there and works correctly, this is the power of harbour.

The base of the project consists of many legs, but at the server level it is based on the Mindaugas uhttpd2 project and that example works perfectly with httpd2.

On the page where I document step by step (at the moment in Spanish, I'm sorry.....but nowadays with the google translator it's easy ;) ) I explain in a section the whole issue https. You can see exactly this chapter here

https://carles9000.github.io/?search=ssl 

For me, the important thing about U-Dbu is not the program itself, but that you can verify that we can step by step and easily make the leap to the web. I think the application is very agile, fast, robust... xBase applications. How many people didn't start looking at a dbu and experimented to learn and test?

With native languages we can be productive to create applications of this type in a couple of years. With this system I think that after a couple of months, you can easily make an app of this style.

My goal is to be able to help many colleagues make this leap before my retirement hahaha

Now it's time to see how the programmer reacts to this project...


Regards.
Charly.

alexwi

unread,
May 4, 2023, 7:47:30 PM5/4/23
to Harbour Users
Hola Charly,

En la página no aparece más que la tabla de contenidos:
temp.png

Charly 9000

unread,
May 5, 2023, 1:08:27 AM5/5/23
to Harbour Users
Alexwi --> DblClick

C.
Reply all
Reply to author
Forward
0 new messages