I downloaded Visual Studio 2026 and compiled my program in it. I made some changes to the .bat file and had to delete the .obj file from the hbxpp.lib library to compile without needing to use /FORCE.
Below are the .bat and .hbp files.
CompilerMsvc.bat
Echo off
cls
set Fwh_Dir=P:\TOOLS\FWH2510
set HarbourMsvc_Dir=P:\TOOLS\HarbourVC
call "C:\Program Files\Microsoft Visual Studio\18\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
LIB /remove:..\lib\win\msvc\.hbmk\hbxpp\idlex.obj %HarbourMsvc_Dir%\lib\win\msvc\hbxpp.lib
SET PATH=%PATH%;%HarbourMsvc_Dir%\BIN\win\msvc
SET INCLUDE=%INCLUDE%;%HarbourMsvc_Dir%\include;%Fwh_Dir%\include
SET HB_INSTALL_PREFIX=%HarbourMsvc_Dir%
SET HB_LANG=PT_BR
SET HB_USER_CFLAGS=-c -TC -GA -GS- -std:c17 -D_WIN32 -D__HARBOUR__
SET HB_USER_LDFLAGS= /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libucrt /MACHINE:X86 /nologo /subsystem:windows,5.01 /INCREMENTAL:NO /ignore:4006 /MANIFEST:NO /DEBUG:NONE /LARGEADDRESSAWARE /CETCOMPAT
SET HB_COMPILER=msvc
%HarbourMsvc_Dir%\bin\win\msvc\HBMK2.EXE P:\Projects\CompilerMsvc.hbp %* -comp=msvcCompilerMsvc.hbp
-inc
#-rebuild
-cpp=gnu17
-m
-n
-w1
-gc0
-q
-gui
-map
-jobs=5
-manifest=P:\Projects\ProjectsFW.Manifest
-oS:\SISTEMAS\NameExe
-workdir=P:\TmpMsvc
-run
########### Start PRGs
P:\Projects\*.prg
########### Resources .rc
P:\Projects\*.rc
########### Resources Bin
P:\TmpMsvc\*.res
########### Contribs Harbour (Necessário Contribs na pasta \HARBOUR)
hbwin.hbc
hbtip.hbc
hbct.hbc
xhb.hbc
hbziparc.hbc
hbmzip.hbc
hbcomm.hbc
hbcurl.hbc
########### Libs Visual C++
-lkernel32
-luser32
-lgdi32
-lwinspool
-lcomctl32
-lcomdlg32
-ladvapi32
-lshell32
-lole32
-loleaut32
-luuid
-lodbc32
-lodbccp32
-liphlpapi
-lmpr
-lversion
-lwsock32
-lmsimg32
-loledlg
-lpsapi
-lgdiplus
-lwinmm
-lvfw32
-lruntimeobject
-lws2_32
-lshlwapi
-lstrmiids
-lucrt
-luxtheme
########### Libs FiveWin
-L${Fwh_Dir}\lib
-lfiveh32
-lfivehc32
-lhbzebra
-lhbhpdf32
-llibhpdf32
########### Libs Advantage Database Server (Ads)
#-lRddAds
#-lAce32