FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH WebApp (HTML) testing
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
FWH WebApp (HTML) testing
Posted: Tue Aug 30, 2022 11:33 AM
Dear friends,

we are moving forward on our target to integrate automatic HTML generation into FWH.

Here we are sharing some simple examples with you, in case you want to test them and provide us feedback. Your feedback is very important for us.

I need you to push me, providing your ideas, requirements and suggestions :-)

FWH samples folder already provides a webapp.prg first example. Here I provide you with webapp2, webapp3 and webapp4 PRG examples:
webapp2.prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

Β  Β SetWebApp()

Β  Β USE Customer
Β  Β Browse() Β  // at this point, please go to "localhost" from your web browser

return nil

webapp3.prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

Β  Β local oDlg

Β  Β SetWebApp()

Β  Β DEFINE DIALOG oDlg

Β  Β @ 2, 2 SAY "Hello world"

Β  Β ACTIVATE DIALOG oDlg CENTERED

return nil

webapp4.prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

Β  Β local oWnd

Β  Β SetWebApp()

Β  Β DEFINE WINDOW oWnd

Β  Β @ 2, 2 SAY "Hello world"

Β  Β @ 4, 5 BUTTON "dialog" SIZE 80, 20

Β  Β ACTIVATE WINDOW oWnd

return nil

Important: These examples have to be built using the new buildhmt.bat available in the samples folder. They only work with Harbour. They don't work with xHarbour.

In order to build and test them you need FWH 22.06. If you already own FWH 22.06 and these examples don't work for you, please send me an email and I will provide you the latest FWH libs.

Please think about basic examples to test and propose them. We need to set the right path for this FWH to HTML automatic generation, a path that is right for all of us.

thank you so much for your time and support
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1344
Joined: Wed Nov 16, 2005 09:14 PM
Re: FWH WebApp (HTML) testing
Posted: Tue Aug 30, 2022 03:49 PM

Excelente Antonio!
Si puedes, me ofrezco para probar
cmsoft70 arroba gmail punto com

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: FWH WebApp (HTML) testing
Posted: Tue Aug 30, 2022 06:03 PM

Maestro, con mucho gusto pruebo:

kapiabafwh@gmail.com

oooppss,

Lo siento maestro, entendΓ­ mal. No tengo FWH 22.06.

Regards, saludos.

JoΓ£o Santos - SΓ£o Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
Re: FWH WebApp (HTML) testing
Posted: Tue Aug 30, 2022 07:52 PM
Hello Antonio

buildHMT WebApp2.prg

https://github.com/arifoliene/sisrev/bl ... webapp.png
" alt="" loading="lazy">

#include "FiveWin.ch"

function Main()

SetWebApp()

USE Customer
Browse() // at this point, please go to "localhost" from your web browser

return nil

foliene@sisrev.com.br
Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
SΓ£o Paulo - SP - Brasil
www.sisrev.com.br
Posts: 555
Joined: Wed Jul 31, 2013 01:14 PM
Re: FWH WebApp (HTML) testing
Posted: Wed Aug 31, 2022 03:04 AM
Hola Maestro.
Tengo este error

────────────────────────────────────────────────────────────────────────────┐
β”‚ FiveWin for Harbour 22.06 - Jun. 2022 Harbour development power β”‚β–„
β”‚ (c) FiveTech 1993-2022 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 β”‚β–ˆ
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜β–ˆ
Β  β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€
Compiling...


Harbour 3.2.0dev (r2008190002)
Copyright (c) 1999-2020, https://harbour.github.io/
Compiling 'webapp2.prg' and generating preprocessed output to 'webapp2.ppo'...
Lines 4986, Functions/Procedures 1
Generating C source output to 'webapp2.c'... Done.

Embarcadero C++ 7.30 for Win32 Copyright (c) 1993-2017 Embarcadero Technologies, Inc.
webapp2.c:
Turbo Incremental Link 6.80 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error: Unresolved external '_HB_FUN_SETWEBAPP' referenced from C:\FWH2206\SAMPLES\WEBAPP2.OBJ
Error: Unable to perform link
* Linking errors *

C:\fwh2206\samples>




Gracias

Saludos

zonadarioARROBAgmailPUNTOcom
Dario Fernandez

FWH 2501, Harbour, MVS2022 Community, MySql & MariaDB, Dbf/Cdx VSCode.

Maldonado - Uruguay
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH WebApp (HTML) testing
Posted: Wed Aug 31, 2022 04:49 AM

Librerias enviadas a todos los que las habeis pedido, muchas gracias! :-)

samples\buildhmt.bat usa Borland

Si no usais Borland y necesitais una versiΓ³n para Microsoft Visual Community, por favor indicadlo, gracias!

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 555
Joined: Wed Jul 31, 2013 01:14 PM
Re: FWH WebApp (HTML) testing
Posted: Wed Aug 31, 2022 05:18 AM

Hola Antonio. Muchas gracias....

Prefiero usar las Libs para Microsoft Visual Community 2022.
Ya que lo estoy usando en todos los proyectos nuevos.

Disculpe y Gracias.

Saludos

Ruben Dario Fernandez

Dario Fernandez

FWH 2501, Harbour, MVS2022 Community, MySql & MariaDB, Dbf/Cdx VSCode.

Maldonado - Uruguay
Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
Re: FWH WebApp (HTML) testing
Posted: Wed Aug 31, 2022 12:09 PM
Hello Antonio,

I executed the WebApp2.pg

with the following results:
https://github.com/arifoliene/sisrev/bl ... ebapp2.jpg
" alt="" loading="lazy">

Antonio,

You can call a function without having to run it first on Five, example:
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

Β  Β SetWebApp()

return nil


function MyBrowse()

Β  USE Customer
Β  Browse() Β  // at this point, please go to "localhost" from your web browser
Β  
return nil

In Web Browser put the function to run: localhost/MyBrowse ?
Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
SΓ£o Paulo - SP - Brasil
www.sisrev.com.br
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH WebApp (HTML) testing
Posted: Wed Aug 31, 2022 02:59 PM

Dear Ari,

thats a possibility that we can have, but shouldn't we follow the app normal "flow" ?

We are not trying to have something different from the desktop app. We want the desktop app to work on the web as it is :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH WebApp (HTML) testing
Posted: Wed Aug 31, 2022 03:02 PM
D.Fernandez wrote:Hola Antonio. Muchas gracias....

Prefiero usar las Libs para Microsoft Visual Community 2022.
Ya que lo estoy usando en todos los proyectos nuevos.

Disculpe y Gracias.

Saludos

Ruben Dario Fernandez


Estimado Ruben,

librerias FWH para MSVC enviadas a tu email, gracias!

Ahora necesitamos un buildhmt.bat para MSVC... :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH WebApp (HTML) testing
Posted: Wed Aug 31, 2022 03:38 PM

Dario,

copy buildh32.bat buildh32mt.bat

Y modifica solamente esta lΓ­nea:
echo %hdirl%\hbvmmt.lib >> msvc.tmp

en vez de usar hbvm.lib, usamos hbvmmt.lib

con eso ya puedes construir los ejemplos en MultiThreading :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 555
Joined: Wed Jul 31, 2013 01:14 PM
Re: FWH WebApp (HTML) testing
Posted: Wed Aug 31, 2022 03:53 PM

Excelente, gracias.

Dario Fernandez

FWH 2501, Harbour, MVS2022 Community, MySql & MariaDB, Dbf/Cdx VSCode.

Maldonado - Uruguay
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: FWH WebApp (HTML) testing
Posted: Wed Aug 31, 2022 03:55 PM

Antonio, interesado en contribuir con las pruebas...

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 137
Joined: Mon Oct 22, 2012 04:43 PM
Re: FWH WebApp (HTML) testing
Posted: Wed Aug 31, 2022 04:32 PM

Antonio,

interested in contributing to the tests...
Borland 7.20 and Visual Studio Community 2022

antonlerchsterARROBAgmailPUNTOcom

Regards



Ing. Anton Lerchster
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH WebApp (HTML) testing
Posted: Wed Aug 31, 2022 06:46 PM

Latest FWH libs sent to both of you for Borland and MSVC2022

Please let me know if you properly get the files, thank you

regards, saludos

Antonio Linares
www.fivetechsoft.com