FWH + Visual Studio Community

Post Reply
User avatar
MarioG
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR
Been thanked: 2 times

FWH + Visual Studio Community

Post 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!
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
Antonio Linares
Site Admin
Posts: 42549
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 78 times
Contact:

Re: FWH + Visual Studio Community

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
MarioG
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR
Been thanked: 2 times

Re: FWH + Visual Studio Community

Post by MarioG »

Muchisimas gracias Antonio!
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
Antonio Linares
Site Admin
Posts: 42549
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 78 times
Contact:

Re: FWH + Visual Studio Community

Post 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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
MarioG
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR
Been thanked: 2 times

Re: FWH + Visual Studio Community

Post by MarioG »

Gracias nuevamente!
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
Giovany Vecchi
Posts: 223
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Re: FWH + Visual Studio Community

Post 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
 
Last edited by Giovany Vecchi on Tue Jul 19, 2022 8:09 pm, edited 2 times in total.
User avatar
Antonio Linares
Site Admin
Posts: 42549
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 78 times
Contact:

Re: FWH + Visual Studio Community

Post by Antonio Linares »

Dear Giovany,

Many thanks for sharing it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Giovany Vecchi
Posts: 223
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Re: FWH + Visual Studio Community

Post by Giovany Vecchi »

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