A big hit: Neither Apache and mod_harbour are needed

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

Re: A big hit: Neither Apache and mod_harbour are needed

Postby Rick Lipkin » Mon Jun 06, 2022 5:39 pm

Antonio

Did you say you can take your desktop client server app and port it to a web app with 2 lines of code ??

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: A big hit: Neither Apache and mod_harbour are needed

Postby Antonio Linares » Mon Jun 06, 2022 6:37 pm

Dear Rick,

I did not :-) I would be lying if I said so.

Its a simpler way to the web, but there is still a lot of work to do. And we are just starting to understand it...

It helps you to start with it, but there are things to change. How far can we go ? We still don't know it...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: A big hit: Neither Apache and mod_harbour are needed

Postby Rick Lipkin » Mon Jun 06, 2022 8:59 pm

Antonio

I am VERY interested ... put me on your List ...

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: A big hit: Neither Apache and mod_harbour are needed

Postby Antonio Linares » Tue Jun 07, 2022 7:06 am

On the right side there is a FWH dialog running, on the left side there is a HTML dialog automatically generated from the FWH one:

Thanks to Cristobal, Charly, Bruno, Kwon... for their help and inspiration. Now we go for the most difficult part. Fingers crossed... ;-)

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: A big hit: Neither Apache and mod_harbour are needed

Postby Patricio Avalos Aguirre » Sun Jul 17, 2022 11:32 pm

Hola se ve interesante, esto también funcionara la para los celulares ,o solo para computadores
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Patricio Avalos Aguirre
 
Posts: 1060
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile

Re: A big hit: Neither Apache and mod_harbour are needed

Postby Antonio Linares » Mon Jul 18, 2022 4:26 am

Estimado Patricio,

Para cualquier dispositivo que soporte un navegador web: telefonos, tablets, smartTVs, PCs, etc :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: A big hit: Neither Apache and mod_harbour are needed

Postby JoelGG999 » Wed Aug 24, 2022 10:35 pm

Hola, es algo magnífico.
Sólo tengo la duda si va a soportar las apps en 32-bit.

Felicidades!
Muchas gracias.
JoelGG999
 
Posts: 15
Joined: Wed Mar 13, 2013 10:52 pm

Re: A big hit: Neither Apache and mod_harbour are needed

Postby Antonio Linares » Wed Aug 24, 2022 11:06 pm

Estimado Joel,

32 y 64 bits

saludos
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: A big hit: Neither Apache and mod_harbour are needed

Postby FiveWiDi » Fri Aug 26, 2022 9:52 am

Antonio Linares wrote:On the right side there is a FWH dialog running, on the left side there is a HTML dialog automatically generated from the FWH one:

Thanks to Cristobal, Charly, Bruno, Kwon... for their help and inspiration. Now we go for the most difficult part. Fingers crossed... ;-)

Image


Hola Antonio,

Danos una alegría, como llevais el asunto de FWH por web?

Muchas gracias,
Un Saludo
Carlos G.

FiveWin 24.02 + Harbour 3.2.0dev (r2403071241), BCC 7.7 Windows 10
FiveWiDi
 
Posts: 1190
Joined: Mon Oct 10, 2005 2:38 pm

Re: A big hit: Neither Apache and mod_harbour are needed

Postby Antonio Linares » Fri Aug 26, 2022 12:31 pm

Despacito y con buena letra :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: A big hit: Neither Apache and mod_harbour are needed

Postby FiveWiDi » Fri Aug 26, 2022 5:04 pm

Antonio Linares wrote:Despacito y con buena letra :-)


Totalmente de acuerdo.

Pero es que estoy pensando en actualizar mi versión de FWH... entonces claro...
Un Saludo
Carlos G.

FiveWin 24.02 + Harbour 3.2.0dev (r2403071241), BCC 7.7 Windows 10
FiveWiDi
 
Posts: 1190
Joined: Mon Oct 10, 2005 2:38 pm

Re: A big hit: Neither Apache and mod_harbour are needed

Postby Antonio Linares » Sat Aug 27, 2022 5:36 am

Carlos,

Si actualizas ahora, tendrás actualizaciones gratuitas hasta que completemos la capacidad WebApp (HTML) de FWH :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: A big hit: Neither Apache and mod_harbour are needed

Postby berpa » Wed Dec 07, 2022 4:32 pm

Hello everybody,

we are trying the new HbWeb functionality that seems really interesting.

However in our tests on FiveDBU.exe we can't obtain the results shown in the forum.

The Windows application FiveDBU.exe is generated with buildhmt.bat and seems to run as expected.
When we start the webserver with the contestual menu item "WebApp" and go to http://localhost on the browser we can see the main window of the Windows application.
But clicking on any voice of the menu or button does nothing. The only thing that happens is that the URL is changed according to the button/menuitem we have selected but the rendering of the HTML page is not updated.

At the same time, in the windows application, the contestual menu item "Controller" shows an empty list, and clicking on the item "Dialogs" we get the following error that close the application:

Code: Select all  Expand view  RUN
Application
===========
   Path and name: B:\fwh2210\samples\fivedbu.exe (32 bits)
   Size: 7,683,072 bytes
   Compiler version: Harbour 3.2.0dev (r2008190002)
   FiveWin  version: FWH 22.10
   C compiler version: Borland/Embarcadero C++ 7.0 (32-bit)
   Windows 10 64 Bits, version: 6.2, Build 9200

   Time from start: 0 hours 17 mins 58 secs
   Error occurred at: 07/12/2022, 17:26:59
   Error description: Error BASE/1132  Bound error: array access
   Args:
     [   1] = H   {=>}
     [   2] = C   Dialogs

Stack Calls
===========
   Called from: .\source\function\WEBAPP.PRG => WA_SHOWCODEDIALOGS( 253 )
   Called from: fivedbu.prg => (b)BUILDPOPUPMENU( 124 )
   Called from: .\source\classes\MENU.PRG => TMENU:ACTIVATE( 1810 )
   Called from: fivedbu.prg => BUILDPOPUPMENU( 127 )
   Called from: fivedbu.prg => (b)FIVEDBU( 92 )
   Called from: .\source\classes\WINDOW.PRG => TMDICLIENT:RBUTTONDOWN( 2184 )
   Called from:  => TMDICLIENT:HANDLEEVENT( 0 )
   Called from: .\source\classes\WINDOW.PRG => _FWH( 3689 )
   Called from:  => WINRUN( 0 )
   Called from: .\source\classes\WINDOW.PRG => TMDIFRAME:ACTIVATE( 1114 )
   Called from: fivedbu.prg => FIVEDBU( 92 )

System
======
   CPU type: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz 3600 Mhz
   Hardware memory: 32434 megs

   Free System resources: 90 %
        GDI    resources: 90 %
        User   resources: 90 %

   Windows total applications running: 6
      1 , B:\fwh2210\samples\fivedbu.exe                                                                      
      2 , C:\WINDOWS\System32\shcore.dll                                                                      
      3 , C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_a8625c
      4 DDE Server Window, C:\WINDOWS\System32\OLE32.DLL                                                                      
      5 GDI+ Window (TabTip.exe),                                                                                                    
      6 GDI+ Window (fivedbu.exe), C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.19041.1348_none_d94f9953e1060d

Variables in use
================
   Procedure     Type   Value
   ==========================
   WA_SHOWCODEDIALOGS
     Param   1:    O    Class: ERROR
   (b)BUILDPOPUPMENU
     Local   1:    U    
     Local   2:    A    Len:    0
     Local   3:    U    
     Local   4:    U    
     Local   5:    U    
     Local   6:    U    
     Local   7:    U    
     Local   8:    U    
     Local   9:    U    
     Local  10:    U    
     Local  11:    S    
     Local  12:    U    
     Local  13:    H    {=>}
     Local  14:    C    "Dialogs"
     Local  15:    U    
     Local  16:    U    
   TMENU:ACTIVATE
     Param   1:    O    Class: TMENUITEM
   BUILDPOPUPMENU
     Param   1:    N    370
     Param   2:    N    755
     Param   3:    O    Class: TMDIFRAME
     Param   4:    L    .T.
     Param   5:    N    0
     Local   1:    A    Len:    2
   (b)FIVEDBU
     Param   1:    N    370
     Param   2:    N    755
     Param   3:    O    Class: TMDIFRAME
     Local   1:    O    Class: TMENU
   TMDICLIENT:RBUTTONDOWN
     Param   1:    N    370
     Param   2:    N    755
     Param   3:    N    2
     Param   4:    O    Class: TMDICLIENT
   TMDICLIENT:HANDLEEVENT
     Param   1:    N    370
     Param   2:    N    755
     Param   3:    N    2
   _FWH
     Param   1:    N    516
     Param   2:    N    2
     Param   3:    N    24249075
   WINRUN
     Param   1:    N    24249075
     Param   2:    N    516
     Param   3:    N    2
     Param   4:    N    24249075
     Param   5:    N    2
     Local   1:    O    Class: TMDICLIENT
   TMDIFRAME:ACTIVATE
     Param   1:    N    4659632
   FIVEDBU
     Param   1:    C    "MAXIMIZED"
     Param   2:    U    
     Param   3:    B    {|| ... }
     Param   4:    U    
     Param   5:    U    
     Param   6:    B    {|| ... }
     Param   7:    U    
     Param   8:    U    
     Param   9:    U    
     Param  10:    U    
     Param  11:    U    
     Param  12:    U    
     Param  13:    U    
     Param  14:    U    
     Param  15:    U    
     Param  16:    U    
     Param  17:    B    {|| ... }
     Param  18:    U    
     Param  19:    U    
     Param  20:    L    .F.
     Local   1:    O    Class: TMDIFRAME
     Local   2:    O    Class: TSCROLLBAR
     Local   3:    O    Class: TSCROLLBAR

Linked RDDs
===========
   DBF
   DBFFPT
   DBFBLOB
   DBFCDX
   DBFNTX

DataBases in use
================

Classes in use:
===============
     1 ERROR
     2 HBCLASS
     3 HBOBJECT
     4 TPREVIEW
     5 TINI
     6 TFONT
     7 TWINDOW
     8 TCONTROL
     9 TBITMAP
    10 TMDIFRAME
    11 TMENU
    12 TREG32
    13 TMENUITEM
    14 TMRU
    15 TBRUSH
    16 TMDICLIENT
    17 TSCROLLBAR
    18 TBAR
    19 TRECT
    20 TBTNBMP
    21 TMSGBAR
    22 TMSGITEM
    23 TTIMER
    24 HBWEBSERVER
    25 TDIALOG
    26 TXBROWSE
    27 TXBRWCOLUMN
    28 TCLIPBOARD
    29 GDIBMP
    30 TCHECKBOX
    31 TSAY
    32 TCOMBOBOX
    33 TGET
    34 GET
    35 TCLIPGET
    36 TBUTTON
    37 TSTRUCT

Memory Analysis
===============
      754 Static variables

   Dynamic memory consume:
      Actual  Value:    2555904 bytes
      Highest Value:    2555904 bytes
 


Looking at the code we got the impression that the variable hWebApp has no "Dialogs" key inside.

Could someone point out what are we doing wrong?

Thanks in advance.
berpa
 
Posts: 16
Joined: Tue Nov 29, 2022 2:23 pm

Re: A big hit: Neither Apache and mod_harbour are needed

Postby TimStone » Wed Dec 07, 2022 7:38 pm

I just saw this today and find it very interesting. I wanted to test it out, and looked at your example with FiveDBU.

I have FWH 2210, Harbour, and MSvC 2022 for the build.

I used BuildH32 to build FiveDBU.

The first problem I found was that the Function WebServer had to be commented out because it exists in the FW library.

Secondly, I do not see, in the running program, any option for the Webserver option you show on the screen shot.

I am looking forward to working with this, so I hope to resolve my confusion here.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2945
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: A big hit: Neither Apache and mod_harbour are needed

Postby Antonio Linares » Wed Dec 07, 2022 8:25 pm

Dear Tim,

FiveDBU must be built using Harbour multithread mode, this requires to use hbmk2 with the flag -MT
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

PreviousNext

Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 2 guests