Page 4 of 5

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

PostPosted: Mon Jun 06, 2022 5:39 pm
by Rick Lipkin
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

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

PostPosted: Mon Jun 06, 2022 6:37 pm
by Antonio Linares
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...

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

PostPosted: Mon Jun 06, 2022 8:59 pm
by Rick Lipkin
Antonio

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

Rick Lipkin

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

PostPosted: Tue Jun 07, 2022 7:06 am
by Antonio Linares
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

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

PostPosted: Sun Jul 17, 2022 11:32 pm
by Patricio Avalos Aguirre
Hola se ve interesante, esto también funcionara la para los celulares ,o solo para computadores

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

PostPosted: Mon Jul 18, 2022 4:26 am
by Antonio Linares
Estimado Patricio,

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

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

PostPosted: Wed Aug 24, 2022 10:35 pm
by JoelGG999
Hola, es algo magnífico.
Sólo tengo la duda si va a soportar las apps en 32-bit.

Felicidades!
Muchas gracias.

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

PostPosted: Wed Aug 24, 2022 11:06 pm
by Antonio Linares
Estimado Joel,

32 y 64 bits

saludos

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

PostPosted: Fri Aug 26, 2022 9:52 am
by FiveWiDi
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,

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

PostPosted: Fri Aug 26, 2022 12:31 pm
by Antonio Linares
Despacito y con buena letra :-)

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

PostPosted: Fri Aug 26, 2022 5:04 pm
by FiveWiDi
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...

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

PostPosted: Sat Aug 27, 2022 5:36 am
by Antonio Linares
Carlos,

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

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

PostPosted: Wed Dec 07, 2022 4:32 pm
by berpa
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
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.

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

PostPosted: Wed Dec 07, 2022 7:38 pm
by TimStone
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.

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

PostPosted: Wed Dec 07, 2022 8:25 pm
by Antonio Linares
Dear Tim,

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