twebview2

twebview2

Postby russimicro » Sat Nov 09, 2024 1:26 pm

Buen dia..

Estoy tratando de compilar los ejemplos de webView2 con xharbour comercial + fwh_24_09, pero obtengo estos errores

xLINK: error: Unresolved external symbol '_CoInitializeEx referenced from FiveHCM.lib(cwebview.obj)'.
xLINK: error: Unresolved external symbol '__imp__SHGetFolderPath referenced from FiveHCM.lib(cwebview.obj)'.

Jonsson Russi
russimicro
 
Posts: 261
Joined: Sun Jan 31, 2010 3:30 pm
Location: Bucaramanga - Colombia

Re: twebview2

Postby Enrico Maria Giordano » Sat Nov 09, 2024 2:47 pm

You have to link ole32.lib and shfolder.lib.
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: twebview2

Postby russimicro » Sat Nov 09, 2024 9:42 pm

Buena tarde... ole32.lib, si
pero shfolder.lib ,,,no existe en xhb ni en fwh ?

Gracias
russimicro
 
Posts: 261
Joined: Sun Jan 31, 2010 3:30 pm
Location: Bucaramanga - Colombia

Re: twebview2

Postby Enrico Maria Giordano » Sat Nov 09, 2024 10:50 pm

Can you send me all the *.lib files of your C compiler, please?
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: twebview2

Postby Antonio Linares » Sun Nov 10, 2024 8:23 am

Estimado Jonsson,

Enlaza shell32.lib
regards, saludos

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

Re: twebview2

Postby russimicro » Sun Nov 10, 2024 3:09 pm

Buen dia..

shell32.lib , ya la tenia

Con el buildxhb.bat de samples ... pasa lo mismo

Este es mi .bat (basado en samples de fwh)

@ECHO OFF
CLS
ECHO 旼컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴커
ECHO ?FiveWin for xHb commercial 23.04 - Abril. 2023 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 xhbdir=c:\xhb
SET fwhdir=c:\fwh24_09

ECHO Compiling...

%xhbdir%\bin\xhb %1 /n /w /p /i%fwhdir%\include;%xhbdir%\include;%xhbdir%\c_include > compiler.log 2> warnings.log

IF ERRORLEVEL 1 GOTO COMPILERERROR:
@type compiler.log
@type warnings.log

IF EXIST %1.rc %xhbdir%\bin\xrc -r -d__FLAT__ -i%xhbdir%\c_include -i%xhbdir%\c_include\win %1
IF ERRORLEVEL 1 GOTO RCCOMPILERERROR:

ECHO %1.obj > xhb.tmp
IF EXIST %1.res ECHO %1.res >> xhb.tmp
ECHO lib\RussoftLib24_09.lib >> xhb.tmp

ECHO %fwhdir%\lib\fivehmx.lib >> xhb.tmp
ECHO %fwhdir%\lib\fivehcm.lib >> xhb.tmp
ECHO xhb.lib >> xhb.tmp
ECHO OptG.lib >> xhb.tmp

echo %fwhdir%\lib\xhb\hbhpdf.lib >> xhb.tmp
echo %fwhdir%\lib\xhb\harupdf.lib >> xhb.tmp
echo %fwhdir%\lib\xhb\png.lib >> xhb.tmp
echo %fwhdir%\lib\xhb\hbzebra.lib >> xhb.tmp
ECHO ? "%fwhdir%\lib\libmariadb32.lib >> xhb.tmp"
ECHO %fwhdir%\lib\libmysql32.lib >> xhb.tmp



ECHO %xhbdir%\lib\sql.lib >> xhb.tmp
ECHO %xhbdir%\lib\ads.lib >> xhb.tmp
ECHO %xhbdir%\lib\ace32.lib >> xhb.tmp
ECHO %xhbdir%\lib\dbf.lib >> xhb.tmp
ECHO %xhbdir%\lib\nsx.lib >> xhb.tmp
ECHO %xhbdir%\lib\ntx.lib >> xhb.tmp
ECHO %xhbdir%\lib\cdx.lib >> xhb.tmp
ECHO %xhbdir%\lib\rmdbfcdx.lib >> xhb.tmp
ECHO %xhbdir%\lib\ct3comm.lib >> xhb.tmp
ECHO %xhbdir%\lib\libpq.lib >> xhb.tmp
ECHO %xhbdir%\lib\fbclient_ms.lib >> xhb.tmp
ECHO %xhbdir%\lib\oci.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\crt.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\kernel32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\user32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\winspool.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\ole32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\oleaut32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\odbc32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\odbccp32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\uuid.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\wsock32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\ws2_32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\wininet.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\advapi32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\shlwapi.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\msimg32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\mpr.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\OleDlg.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\version.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\comctl32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\comdlg32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\gdi32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\shell32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\winmm.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\lz32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\Netapi32.lib >> xhb.tmp
ECHO %xhbdir%\c_lib\win\gdiplus.lib >> xhb.tmp
ECHO %xhbdir%\lib\xhbzip.lib >> xhb.tmp
ECHO %xhbdir%\lib\xhbzipdll.lib >> xhb.tmp

ECHO %fwhdir%\lib\xfw.lib >> xhb.tmp


%xhbdir%\bin\xlink -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -SUBSYSTEM:windows -UNMANGLE -LIBPATH:"%fwhdir%\Lib" -LIBPATH:"%xhbdir%\Lib" -LIBPATH:"%xhbdir%\c_lib" -LIBPATH:"%xhbdir%\c_lib\Win" @xhb.tmp -OUT:%1.exe
IF ERRORLEVEL 1 GOTO LINKERROR

ECHO * Application successfully built *

@del %1.c
@del %1.ppo
@del %1.obj
rem @del %1.map
@del xhb.tmp
@del compiler.log
@del warnings.log


GOTO EXIT
ECHO

:COMPILERERROR
@type compiler.log
@type warnings.log
ECHO * Compiling program errors *
GOTO EXIT

:RCCOMPILERERROR
ECHO * Compiling resources errors *
GOTO EXIT

:LINKERROR
ECHO * Linking executable errors *
GOTO EXIT

:SINTAX
ECHO SYNTAX: BuildXHB [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
russimicro
 
Posts: 261
Joined: Sun Jan 31, 2010 3:30 pm
Location: Bucaramanga - Colombia

Re: twebview2

Postby Enrico Maria Giordano » Sun Nov 10, 2024 3:47 pm

Enrico Maria Giordano wrote:Can you send me all the *.lib files of your C compiler, please?


I need the files to search inside them for the unresolved functions.
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: twebview2

Postby Antonio Linares » Sun Nov 10, 2024 4:37 pm

regards, saludos

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

Re: twebview2

Postby russimicro » Sun Nov 10, 2024 4:42 pm

Antonio.. queda este error..

xLINK: error: Unresolved external symbol '_CoInitializeEx referenced from FiveHCM.lib(cwebview.obj)'.
russimicro
 
Posts: 261
Joined: Sun Jan 31, 2010 3:30 pm
Location: Bucaramanga - Colombia

Re: twebview2

Postby Antonio Linares » Sun Nov 10, 2024 5:01 pm

Por favor, vuelve a descargarla y prueba de nuevo:

https://github.com/FiveTechSoft/FWH_tools/blob/master/xfw.lib
regards, saludos

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

Re: twebview2

Postby russimicro » Sun Nov 10, 2024 6:16 pm

Antonio... no se soluciono...

Esto sucede aqui .. igual ...

C:\fwh24_09\samples>buildxhb webview_2
russimicro
 
Posts: 261
Joined: Sun Jan 31, 2010 3:30 pm
Location: Bucaramanga - Colombia

Re: twebview2

Postby Antonio Linares » Sun Nov 10, 2024 7:46 pm

Este error ?

> xLINK: error: Unresolved external symbol '_CoInitializeEx referenced from FiveHCM.lib(cwebview.obj)'.
regards, saludos

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

Re: twebview2

Postby Antonio Linares » Sun Nov 10, 2024 7:52 pm

Por favor, vuelve a descargarla y prueba de nuevo:

https://github.com/FiveTechSoft/FWH_too ... er/xfw.lib
regards, saludos

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

Re: twebview2

Postby russimicro » Sun Nov 10, 2024 9:27 pm

Antonio, ya compila

Pero ejecutando estos dos ejemplos...

webview2_2
webviewdian

Llega hasta aquí... y se sale
oWebView := TWebView2():New()
russimicro
 
Posts: 261
Joined: Sun Jan 31, 2010 3:30 pm
Location: Bucaramanga - Colombia

Re: twebview2

Postby Antonio Linares » Mon Nov 11, 2024 5:27 am

Se genera algún fichero *.log ?
regards, saludos

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

Next

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 51 guests