FWH + Visual Studio Community

FWH + Visual Studio Community

Postby MarioG » 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
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: FWH + Visual Studio Community

Postby Antonio Linares » Tue Jul 19, 2022 5: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=3&t=41671&start=0&hilit=hbmk2
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH + Visual Studio Community

Postby MarioG » Tue Jul 19, 2022 1:31 pm

Muchisimas gracias Antonio!
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: FWH + Visual Studio Community

Postby Antonio Linares » Tue Jul 19, 2022 3: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH + Visual Studio Community

Postby MarioG » Tue Jul 19, 2022 4:45 pm

Gracias nuevamente!
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: FWH + Visual Studio Community

Postby Giovany Vecchi » Tue Jul 19, 2022 5: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: Select all  Expand view  RUN
@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 view  RUN
-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
Giovany Vecchi
 
Posts: 223
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Re: FWH + Visual Studio Community

Postby Antonio Linares » Tue Jul 19, 2022 6:47 pm

Dear Giovany,

Many thanks for sharing it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH + Visual Studio Community

Postby Giovany Vecchi » Tue Jul 19, 2022 7:03 pm

Oops, the MSVC libraries are missing. I already changed.
User avatar
Giovany Vecchi
 
Posts: 223
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 45 guests