Page 1 of 1
FWH + Visual Studio Community
Posted: Mon Jul 18, 2022 11:48 pm
by MarioG
Hola Gente
Utilizo UES 10.30 y para compilación/enlazado Borland
Alguien me podría indicar como generar la plantilla de configuración; para hacerlo con Visual Studio Community
muchas gracias!
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 5:21 am
by Antonio Linares
Estimado Mario,
La tendencia ahora es que uses vscode (instala la extensión Harbour de Antonino Perricone) para programar y que construyas tu app usando hbmk2
Busca por hbmk2 en estos foros y encontrarás muchos ejemplos de como se usa. Es la manera más simple y sencilla de trabajar con Harbour y FWH
viewtopic.php?f=3&t=41671&start=0&hilit=hbmk2
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 1:31 pm
by MarioG
Muchisimas gracias Antonio!
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 3:14 pm
by Antonio Linares
Puedes descargar vscode desde aqui:
https://code.visualstudio.com/A la izquierda te aparece un botón que dice "extensiones", pulsas ahí y escribes "harbour" y seleccionas el de Antonino Perricone

Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 4:45 pm
by MarioG
Gracias nuevamente!
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 5:16 pm
by Giovany Vecchi
I've been working for 3 years and I simply use these simple settings.
Resource files edited in PellesC in .RC format are generated by MSvc without any problem.
CompilerMsvc.bat
Code: Select all | Expand
@Echo off
@cls
@SET PATH=%PATH%;P:\TOOLS\HarbourVC\BIN
@SET INCLUDE=P:\TOOLS\HarbourVC\include;P:\TOOLS\FWH\include;P:\Projects\_ALL\tAds\Include;P:\Projects\_ALL\Own\IncOwn
@SET HB_INSTALL_PREFIX=P:\TOOLS\HarbourVc
@SET HB_LANG=PT_BR
@call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
@SET HB_USER_CFLAGS=-TC -GS- -GA -D__NODEBUG__ -D__HBDYNLOAD__RDDADS__ -D_WIN32
@SET HB_USER_LDFLAGS= /NODEFAULTLIB:msvcrt /MACHINE:X86 /nologo /subsystem:windows /DEBUG:NONE /INCREMENTAL:NO /ignore:4006 /MANIFEST:NO
@SET HB_COMPILER=msvc
P:\TOOLS\HarbourVC\bin\HBMK2.EXE Project.hbp %* -comp=msvc
Project.hbp
Code: Select all | Expand
-inc
-m
-n
-w1
-gc0
-q
-gui
-map
-icon=Project.ico
-manifest=WindowsXp.Manifest
#Output Executable
-oC:\PROJECT\SAMPLE\Project
-workdir=C:\TEMP
-run
########## PRGS
Project.prg
Module01.prg
Module02.prg
########## RESOURCES
Project.rc
Modules.rc
########## LIBS AND SOURCES
hbwin.hbc hbct.hbc xhb.hbc hbziparc.hbc hbmzip.hbc hbcomm.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
-lfiveh32
-lfivehc32
-lhbzebra
-lhbhpdf
-llibhpdf
-Lp:\fwh\lib
-lAce32
-lRddAds
-LP:\Projects\Own\RddAds
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 6:47 pm
by Antonio Linares
Dear Giovany,
Many thanks for sharing it
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 7:03 pm
by Giovany Vecchi
Oops, the MSVC libraries are missing. I already changed.