FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Building Harbour + FWH apps from Visual Studio 2012
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Building Harbour + FWH apps from Visual Studio 2012
Posted: Sun May 12, 2013 05:07 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Sun May 12, 2013 05:26 PM
Required settings (in progress, refresh this)

Create a new project this way:


Add your PRGs as explained here:
https://code.google.com/p/fivewinrt/wiki/Compiling_PRGs_from_Visual_Studio_2012

Libraries to link:



regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Sun May 12, 2013 06:28 PM

Hi Antonio,

Is .net framework required for compiled exe to be run?

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Sun May 12, 2013 07:08 PM

Hakan,

No, not at all :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Mon May 13, 2013 07:36 AM

Antonio

Great news

which 2012 express did you chose ?

Visual Studio Express 2012 for Windows 8

or

Visual Studio Express 2012 for Windows Desktop

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Mon May 13, 2013 08:14 AM
Richard,

I use VIsual Studio 2012 Ultimate. I think it is the most complete one. I get it free thanks to the University :-)

[

In fact students get all the Microsoft products for free, including Windows, Windows servers, Visual Studio, etc:
http://forums.fivetechsupport.com/viewtopic.php?p=91275#p91275
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Wed Jul 03, 2013 02:13 PM
Hi Antonio,

Trying to compile tutor02.prg in vs2012 as you written above.

I could not find the Comctl32.lib, MSImg32.lib, OleDbg.lib and Version.lib.

I got this error and can not build prg.

Code (fw): Select all Collapse
c:\users\hp\documents\visual studio 2012\projects\tutor02\tutor02\tutor02.c(78): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?


Any help?

Thanks
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Wed Jul 03, 2013 03:30 PM

Hakan,

Those libs are here:

c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\

Remove the (x86) is you are using a Windows 32 bits.

In the VS2012 project properties select not to use precompiled headers

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Wed Jul 03, 2013 05:05 PM

Antonio,

Is it possible to zip tutor02 project files and send me?

Thanks.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Thu Jul 04, 2013 02:44 AM
Hakan,

Here you have it:
https://code.google.com/p/fivewin-contributions/downloads/detail?name=tutor02_VS2012.zip

A picture is worth a thousands words :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Thu Jul 04, 2013 11:38 AM

Thank you Antonio,

I have achieved to compile and run it. Is it faster than normal compile?

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Thu Jul 04, 2013 02:43 PM

Hakan,

All C compilers (and makes) are quite similar so its not a matter of speed, it is more a matter of using Microsoft tools, that it is something that each developer/company may assess in a different way.

Microsoft C provides a great low level debugger, which it is something very usefull on some (rare) ocassions, for example we can visually trace Harbour activity, how it boots, etc. It also includes a great low level profiler. These are very good tools that we don't have with Borland C (in fact, its getting harder to get the C compiler from Borland, as they don't allow redistribution of their free files, etc).

And though I admit that gcc is a great tool, the fact that we have to install MinGW, and change many things related to the way we are used to work makes me think its a clever desition to use Microsoft Visual C, that we can easily get for free (express version) from Microsoft.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Thu Jul 04, 2013 03:55 PM
Hello Antonio ,

great job

works with VS 2010 too


Maurizio

http://www.nipeservice.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Thu Jul 04, 2013 05:55 PM

Maurizio,

thanks for the feedback :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 518
Joined: Fri Jun 29, 2012 12:49 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Fri Jul 05, 2013 08:46 AM

Antonio,

Is it posible to build applications with VS2012 or MSVC2012 using the build.bat file?.

Thanks