FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH + Visual Studio Community
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
FWH + Visual Studio Community
Posted: Mon Jul 18, 2022 11:48 PM

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!

Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 05:21 AM

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=3t=41671start=0hilit=hbmk2

&&&

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 01:31 PM

Muchisimas gracias Antonio!

Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 03:14 PM
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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 04:45 PM

Gracias nuevamente!

Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 244
Joined: Mon Jun 05, 2006 09:39 PM
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 05:16 PM
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 (fw): Select all Collapse
@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 (fw): Select all Collapse
-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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 06:47 PM

Dear Giovany,

Many thanks for sharing it

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 244
Joined: Mon Jun 05, 2006 09:39 PM
Re: FWH + Visual Studio Community
Posted: Tue Jul 19, 2022 07:03 PM

Oops, the MSVC libraries are missing. I already changed.

Continue the discussion