FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Visual Studio 2013 y aplicaciones desktop (solucionado)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Visual Studio 2013 y aplicaciones desktop (solucionado)
Posted: Wed May 28, 2014 06:02 PM

ha sido alguien capaz de construir una aplicaci贸n FWH 64 y Harbour 64 usando Visual Studio 2013 ?

Parece que ya no soportan el desarrollo de aplicaciones desktop (espero estar confundido...)

Con Visual Studio 2012 Express todo funciona correctamente :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Visual Studio 2013 y aplicaciones desktop (solucionado)
Posted: Sun Jun 01, 2014 07:46 AM
Gracias a Robb, hemos sido capaz de construir el makefile correcto para Visual Studio 2013:

go.bat
Code (fw): Select all Collapse
@set oldpath=%path%
@set oldinclude=%include%
@set oldlib=%lib%
@set oldlibpath=%libpath%
if exist "%ProgramFiles%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" call "%ProgramFiles%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
c:\"Program Files (x86)\Microsoft Visual Studio 12.0"\VC\bin\nmake -ftest.mak
@set path=%oldpath%
@set include=%oldinclude%
@set lib=%oldlib%
@set libpath=%oldlibpath%
@set oldpath=""
@set oldinclude=""
@set oldlib=
@set oldlibpath=
if errorlevel==0 one.exe


test.mak
Code (fw): Select all Collapse
#Microsoft VS2013 make sample, (c) FiveTech Software 2014

HBDIR=c:\harbour
FWDIR=c:\fwteam
VCDIR="c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC"
SDKDIR="c:\Program Files (x86)\Windows Kits\8.1"

.SUFFIXES: .prg .c .obj .rc .res

one.exe : one.obj two.obj three.obj one.res
聽 聽echo one.obj two.obj three.obj > msvc.tmp

聽 聽echo $(FWDIR)\lib\FiveH64.lib $(FWDIR)\lib\FiveHC64.lib >> msvc.tmp

聽 聽echo $(HBDIR)\lib\vc64\hbrtl.lib 聽 聽>> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbvm.lib 聽 聽 >> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\gtgui.lib 聽 聽>> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hblang.lib 聽 >> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbmacro.lib 聽>> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbrdd.lib 聽 聽>> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\rddntx.lib 聽 >> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\rddcdx.lib 聽 >> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\rddfpt.lib 聽 >> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbsix.lib 聽 聽>> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbdebug.lib 聽>> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbcommon.lib >> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbpp.lib 聽 聽 >> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbwin.lib 聽 聽>> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbcplr.lib 聽 >> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\xhb.lib 聽 聽 聽>> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbpcre.lib 聽 >> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbct.lib 聽 聽 >> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbcpage.lib 聽>> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\hbzlib.lib 聽 >> msvc.tmp
聽 聽echo $(HBDIR)\lib\vc64\png.lib 聽 聽 聽>> msvc.tmp

聽 聽echo kernel32.lib 聽>> msvc.tmp
聽 聽echo user32.lib 聽 聽>> msvc.tmp
聽 聽echo gdi32.lib 聽 聽 >> msvc.tmp
聽 聽echo winspool.lib 聽>> msvc.tmp
聽 聽echo comctl32.lib 聽>> msvc.tmp
聽 聽echo comdlg32.lib 聽>> msvc.tmp
聽 聽echo advapi32.lib 聽>> msvc.tmp
聽 聽echo shell32.lib 聽 >> msvc.tmp
聽 聽echo ole32.lib 聽 聽 >> msvc.tmp
聽 聽echo oleaut32.lib 聽>> msvc.tmp
聽 聽echo uuid.lib 聽 聽 聽>> msvc.tmp
聽 聽echo odbc32.lib 聽 聽>> msvc.tmp
聽 聽echo odbccp32.lib 聽>> msvc.tmp
聽 聽echo iphlpapi.lib 聽>> msvc.tmp
聽 聽echo mpr.lib 聽 聽 聽 >> msvc.tmp
聽 聽echo version.lib 聽 >> msvc.tmp
聽 聽echo wsock32.lib 聽 >> msvc.tmp
聽 聽echo msimg32.lib 聽 >> msvc.tmp
聽 聽echo oledlg.lib 聽 聽>> msvc.tmp
聽 聽echo psapi.lib 聽 聽 >> msvc.tmp
聽 聽echo gdiplus.lib 聽 >> msvc.tmp
聽 聽echo winmm.lib 聽 聽 >> msvc.tmp

聽 聽IF EXIST one.res echo one.res >> msvc.tmp

聽 聽link @msvc.tmp /nologo /subsystem:windows /force:multiple /NODEFAULTLIB:libc > link.log
聽 聽@type link.log
聽 聽@del one.c
聽 聽@del two.c
聽 聽@del three.c
聽 聽@del msvc.tmp

one.obj 聽 : one.c
two.obj 聽 : two.c
three.obj : three.c

one.c 聽 : one.prg
two.c 聽 : two.prg
three.c : three.prg

one.res : one.rc
聽 聽c:\vc98\bin\rc.exe -r -d__FLAT__ one.rc 

.prg.c:
聽 聽$(HBDIR)\bin\harbour $< /n /i$(FWDIR)\include;$(HBDIR)\include

.c.obj:
聽 聽cl.exe -c -TC -W3 -I$(HBDIR)\include -I$(SDKDIR)\include -I$(VCDIR)\include $<


uno.prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

聽 聽Two()
聽 聽
聽 聽Three()

return nil


two.prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Two()

聽 聽local oWnd

聽 聽DEFINE WINDOW oWnd TITLE "FWH64 and Harbour 64 bits for Microsoft Visual Studio 2013"

聽 聽ACTIVATE WINDOW oWnd

return nil


three.prg
Code (fw): Select all Collapse
function Three()

聽 聽MsgInfo( "three.prg also linked" )

return nil


one.rc
Code (fw): Select all Collapse
// place your resources here

1 ICON favorite.ico


Podeis descargarlo desde aqui:
https://bitbucket.org/fivetech/fivewin-contributions/downloads/vs2013_make.zip
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: Visual Studio 2013 y aplicaciones desktop (solucionado)
Posted: Mon Jun 02, 2014 01:51 AM

Hola Antonio

Consulta, cual ser矛a el compilador C ideal para utilizar con harbour 3.2 ?

Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Visual Studio 2013 y aplicaciones desktop (solucionado)
Posted: Mon Jun 02, 2014 06:19 AM

Patricio,

El m谩s popular parece ser Borland pero estamos usando versiones relativamente no actualizadas y Embarcadero no lo pone f谩cil para descargar e instalar, pues forma parte de todo un producto que no vamos a usar. Sin embargo con Visual Studio hasta podemos construir nuestras aplicaciones desde su IDE, usar el debugger a bajo nivel, tiene editor de recursos (en la versi贸n Express no), etc.

En mi opini贸n la mejor opci贸n es el Visual Studio, y a ser posible la versi贸n m谩s reciente: Visual Studio 2014 Express (es gratuito).

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion