Page 1 of 2
twebview2
Posted: Sat Nov 09, 2024 1:26 pm
by russimicro
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
Re: twebview2
Posted: Sat Nov 09, 2024 2:47 pm
by Enrico Maria Giordano
You have to link ole32.lib and shfolder.lib.
Re: twebview2
Posted: Sat Nov 09, 2024 9:42 pm
by russimicro
Buena tarde... ole32.lib, si
pero shfolder.lib ,,,no existe en xhb ni en fwh ?
Gracias
Re: twebview2
Posted: Sat Nov 09, 2024 10:50 pm
by Enrico Maria Giordano
Can you send me all the *.lib files of your C compiler, please?
Re: twebview2
Posted: Sun Nov 10, 2024 8:23 am
by Antonio Linares
Estimado Jonsson,
Enlaza shell32.lib
Re: twebview2
Posted: Sun Nov 10, 2024 3:09 pm
by russimicro
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
Re: twebview2
Posted: Sun Nov 10, 2024 3:47 pm
by Enrico Maria Giordano
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.
Re: twebview2
Posted: Sun Nov 10, 2024 4:37 pm
by Antonio Linares
Re: twebview2
Posted: Sun Nov 10, 2024 4:42 pm
by russimicro
Antonio.. queda este error..
xLINK: error: Unresolved external symbol '_CoInitializeEx referenced from FiveHCM.lib(cwebview.obj)'.
Re: twebview2
Posted: Sun Nov 10, 2024 5:01 pm
by Antonio Linares
Re: twebview2
Posted: Sun Nov 10, 2024 6:16 pm
by russimicro
Antonio... no se soluciono...
Esto sucede aqui .. igual ...
C:\fwh24_09\samples>buildxhb webview_2
Re: twebview2
Posted: Sun Nov 10, 2024 7:46 pm
by Antonio Linares
Este error ?
> xLINK: error: Unresolved external symbol '_CoInitializeEx referenced from FiveHCM.lib(cwebview.obj)'.
Re: twebview2
Posted: Sun Nov 10, 2024 7:52 pm
by Antonio Linares
Re: twebview2
Posted: Sun Nov 10, 2024 9:27 pm
by russimicro
Antonio, ya compila
Pero ejecutando estos dos ejemplos...
webview2_2
webviewdian
Llega hasta aquí... y se sale
oWebView := TWebView2():New()
Re: twebview2
Posted: Mon Nov 11, 2024 5:27 am
by Antonio Linares
Se genera algún fichero *.log ?