FWH WebApp (HTML) testing

Re: FWH WebApp (HTML) testing

Postby cmsoft » Wed Aug 31, 2022 7:43 pm

Antonio:
Copié las librerías que enviaste y compilo con el .bat buildhmt webview2 (El ejemplo 2 que publicaste).
Me genera el .exe sin errores pero no me muestra nada web.
Este es el buildhmt.bat
Code: Select all  Expand view

ECHO ³ FiveWin for Harbour 22.06 - Jun. 2022           Harbour development power  ³Ü
ECHO ³ (c) FiveTech 1993-2022 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 ³Û
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß

if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST
set FWDIR=.\..
set HBDIR=c:\harb21
rem if "%2" == "/b" set GT=gtwin
rem if not "%2" == "/b" set GT=gtgui
set GT=gtgui

ECHO Compiling...

set hdir=%HBDIR%
set hdirl=%hbdir%\lib
set fwh=%FWDIR%
if exist c:\bcc7 set bcdir=c:\bcc7
if exist c:\bcc64 set bcdir=c:\bcc64

%hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log
if errorlevel 1 goto COMPILEERRORS
@type comp.log
@type warnings.log

echo -O2 -e%1.exe -I%hdir%\include -I%bcdir%\include -I%fwh%\include %1.c > b32.bc
%bcdir%\bin\bcc32 -M -c @b32.bc
:ENDCOMPILE

IF EXIST %1.rc %bcdir%\bin\brc32.exe -r -I%bcdir%\include -I%bcdir%\include\windows\sdk %1
rem IF EXIST %1.rc %bcdir%\bin\cgrc.exe -r -m -I%bcdir%\include -I%bcdir%\include\windows\sdk %1
rem IF EXIST %1.rc %vcdir%\bin\rc -r -d__FLAT__ %1

echo %bcdir%\lib\c0w32.obj + > b32.bc
echo %1.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
echo %1.map, + >> b32.bc
echo %fwh%\lib\FiveH.lib %fwh%\lib\FiveHC.lib %fwh%\lib\libmysql.lib + >> b32.bc
echo %fwh%\lib\hbpgsql.lib %fwh%\lib\libpq.lib + >> b32.bc
echo %hdirl%\hbhpdf.lib + >> b32.bc
echo %hdirl%\libhpdf.lib + >> b32.bc
echo %hdirl%\png.lib + >> b32.bc
echo %hdirl%\hbwin.lib + >> b32.bc
echo %hdirl%\gtgui.lib + >> b32.bc
echo %hdirl%\hbvmmt.lib + >> b32.bc
echo %hdirl%\hbrtl.lib + >> b32.bc
echo %hdirl%\hblang.lib + >> b32.bc
echo %hdirl%\hbmacro.lib + >> b32.bc
echo %hdirl%\hbrdd.lib + >> b32.bc
echo %hdirl%\rddntx.lib + >> b32.bc
echo %hdirl%\rddcdx.lib + >> b32.bc
echo %hdirl%\rddfpt.lib + >> b32.bc
echo %hdirl%\hbsix.lib + >> b32.bc
echo %hdirl%\hbdebug.lib + >> b32.bc
echo %hdirl%\hbcommon.lib + >> b32.bc
echo %hdirl%\hbpp.lib + >> b32.bc
echo %hdirl%\hbcpage.lib + >> b32.bc
echo %hdirl%\hbcplr.lib + >> b32.bc
echo %hdirl%\hbct.lib + >> b32.bc
echo %hdirl%\hbpcre.lib + >> b32.bc
echo %hdirl%\xhb.lib + >> b32.bc
echo %hdirl%\hbziparc.lib + >> b32.bc
echo %hdirl%\hbmzip.lib + >> b32.bc
echo %hdirl%\hbzlib.lib + >> b32.bc
echo %hdirl%\minizip.lib + >> b32.bc
rem echo %hdirl%\png.lib + >> b32.bc
echo %hdirl%\hbusrrdd.lib + >> b32.bc
echo %hdirl%\hbtip.lib + >> b32.bc
echo %hdirl%\hbzebra.lib + >> b32.bc

rem Uncomment these two lines to use Advantage RDD
rem echo %hdirl%\rddads.lib + >> b32.bc
rem echo %hdirl%\Ace32.lib + >> b32.bc

echo %fwh%\lib\dolphin.lib + >> b32.bc
rem echo %fwh%\lib\libmysql.lib + >> b32.bc

echo %bcdir%\lib\cw32.lib + >> b32.bc
echo %bcdir%\lib\uuid.lib + >> b32.bc
echo %bcdir%\lib\import32.lib + >> b32.bc
echo %bcdir%\lib\ws2_32.lib + >> b32.bc
echo %bcdir%\lib\imm32.lib + >> b32.bc
echo %bcdir%\lib\winmm.lib + >> b32.bc
echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc
echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc
echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc
echo %bcdir%\lib\psdk\gdiplus.lib + >> b32.bc
echo %bcdir%\lib\psdk\Wtsapi32.lib + >> b32.bc
echo %bcdir%\lib\psdk\cw32mt.lib + >> b32.bc
echo %bcdir%\lib\psdk\shell32.lib, >> b32.bc

IF EXIST %1.res echo %1.res >> b32.bc
if %GT% == gtwin %bcdir%\bin\ilink32 -Gn -Tpe -s @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR
if %GT% == gtgui %bcdir%\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built *
rem signtool.exe sign /fd sha256 %1.exe
%1
GOTO EXIT
ECHO

rem delete temporary files
@del %1.c

:COMPILEERRORS
@type comp.log
@type warnings.log
ECHO * Compile errors *
GOTO EXIT

:LINKERROR
ECHO * Linking errors *
GOTO EXIT

:SINTAX
ECHO    SYNTAX: Build [Program]     {-- No especifiques la extensi?n PRG
ECHO                                {-- Don't specify .PRG extension
GOTO EXIT

:NOEXIST
ECHO The specified PRG %1 does not exist

:EXIT


El ultimo harbour lo tengo en la carpeta c:\harb21
Que puedo estar haciendo mal?
Gracias de antemano
User avatar
cmsoft
 
Posts: 1285
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Re: FWH WebApp (HTML) testing

Postby Antonio Linares » Thu Sep 01, 2022 6:47 am

Estimado Cesar,

Aunque no aparezca nada en el navegador web, pulsa botón derecho e inspecciona el código fuente

Revisa lo que está llegando al navegador asi
regards, saludos

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

Re: FWH WebApp (HTML) testing

Postby cmsoft » Thu Sep 01, 2022 12:30 pm

Antonio:
Es que al presionar boton derecho no me abre el navegador.
Antes de actualizar las librerías si lo hacía, pero ahora no me abre...
User avatar
cmsoft
 
Posts: 1285
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Re: FWH WebApp (HTML) testing

Postby Antonio Linares » Thu Sep 01, 2022 12:37 pm

César,

Ahora no se hace asi, sino que tienes que ir a "localhost" desde el navegador y ahi te aparece :-)

Mira a ver si asi te funciona, en concreto con los ejemplos que he publicado
regards, saludos

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

Re: FWH WebApp (HTML) testing

Postby Maurizio » Thu Sep 01, 2022 1:52 pm

Hello Antonio
the program compiles correctly
but in the browse localhost i have only :
Apache... it works!

Maurizio
User avatar
Maurizio
 
Posts: 823
Joined: Mon Oct 10, 2005 1:29 pm

Re: FWH WebApp (HTML) testing

Postby Antonio Linares » Thu Sep 01, 2022 3:14 pm

Dear Maurizio,

That means that you have Apache running, so please turn it off and then try the FWH examples again :-)

many thanks
regards, saludos

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

Re: FWH WebApp (HTML) testing

Postby cmsoft » Thu Sep 01, 2022 3:29 pm

Perfecto Antonio!
Eran ambas cosas, tenia el apache funcionando y no lo estaba mirando por localhost.
Muchas gracias!
User avatar
cmsoft
 
Posts: 1285
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Re: FWH WebApp (HTML) testing

Postby Antonio Linares » Thu Sep 01, 2022 3:35 pm

Muy bien Cesar!

Ahora se trata de ir haciendo pequeñas pruebas y ver que hay que mejorar, que falta, etc.

muchas gracias
regards, saludos

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

Re: FWH WebApp (HTML) testing

Postby leandro » Thu Sep 01, 2022 6:07 pm

Hola buenas tardes para todos.

Antonio, en algun momento va ser compatible con xharbour? o eso no esta dentro de los planes?
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1669
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: FWH WebApp (HTML) testing

Postby leandro » Thu Sep 01, 2022 6:08 pm

Otra pregunta, esto es diferente a webview?
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1669
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: FWH WebApp (HTML) testing

Postby Otto » Thu Sep 01, 2022 7:08 pm

Leandro,

Like you, I am an xHarbour user.
But I have no particular reason that it has to be xHarbour. It has turned out that way.

But I often ask myself how much work it is to change my program to HARBOUR.

I think it would also be wise in terms of mod harbour.

Have you ever considered a changeover?

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6313
Joined: Fri Oct 07, 2005 7:07 pm

Re: FWH WebApp (HTML) testing

Postby Antonio Linares » Thu Sep 01, 2022 8:56 pm

leandro wrote:Hola buenas tardes para todos.

Antonio, en algun momento va ser compatible con xharbour? o eso no esta dentro de los planes?

Estimado Leandro,

El soporte de ejecución multihilo en xHarbour no está al nivel que tiene Harbour. No es mi opinión solamente, sino que está comentado por Przemek, Viktor, etc.
Necesitamos ejecución multihilo robusta para poder atender las peticiones web.

Esto no tiene nada que ver con WebView. WebView es un nuevo control de Microsoft que reemplaza al antiguo Internet Explorer.

Lo que estamos tratando es de una nueva característica de FWH que permite la generación automática de HTML y el poder usar una aplicación desktop de FWH directamente desde un navegador web. De momento seguimos en fase de desarrollo y las pruebas que se estan haciendo es para comprobar la generación automática de HTML. Aún no podemos usar la aplicación desktop desde la web. Estamos probando solamente la generación automática de código HTML.
regards, saludos

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

Re: FWH WebApp (HTML) testing

Postby Antonio Linares » Thu Sep 01, 2022 9:04 pm

Otto wrote:Leandro,

Like you, I am an xHarbour user.
But I have no particular reason that it has to be xHarbour. It has turned out that way.

But I often ask myself how much work it is to change my program to HARBOUR.

I think it would also be wise in terms of mod harbour.

Have you ever considered a changeover?

Best regards,
Otto


Dear Otto,

The migration from xHarbour to Harbour is quite simple and easy to be done.

mod_harbour is based on Harbour as it requires robust multi threading, which it is not available on xHarbour.

Besides that, the hbcplr.lib of Harbour allows you to compile and execute PRGs at runtime, also required from mod_harbour.

This capability is also the key to turn your FWH desktop apps into real ERPs, that will allow the users to write code and execute it without having to
build new EXEs. This allows to have desktop apps that can grow, enhance and be modified without having to deliver new EXEs. This is a huge difference between Harbour and xHarbour and opens huge possibilities (ERPs power).
regards, saludos

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

Re: FWH WebApp (HTML) testing

Postby cmsoft » Thu Sep 01, 2022 10:29 pm

Antonio:
Estuve probando varios programas de samples (le agrego el SetWebApp() para que genere el html)
Por lo que probe hasta ahora los controles que estan funcionando son
Menu
Dialgo
Window
Button
Get
Say
Browse
Radio (Aunque funciona como un check box y permite multiple seleccion)
Checkbox

Todavia Falta implementar:
Bitmaps (Esto no se si es porque no puede acceder al archivo de imagen desde el servidor local)
Ribbon

Como sugerencia, claro que esto es poco importante ahora, en la clase tget, podría ponerse type según el tipo de datos (number, date, time, text)

Puedes completar la lista Antonio, que seguro son muchos mas que no llegué a probar....
User avatar
cmsoft
 
Posts: 1285
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Re: FWH WebApp (HTML) testing

Postby Antonio Linares » Fri Sep 02, 2022 6:23 am

César,

muchas gracias por tu valioso feedback

un abrazo
regards, saludos

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

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Natter, Willi Quintana and 26 guests