Building Harbour + FWH apps from Visual Studio 2012

Building Harbour + FWH apps from Visual Studio 2012

Postby Antonio Linares » Sun May 12, 2013 5:07 pm

Image
regards, saludos

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

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Antonio Linares » Sun May 12, 2013 5:26 pm

Required settings (in progress, refresh this)

Create a new project this way:
Image

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

Libraries to link:
Image

Image
Image
regards, saludos

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

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Horizon » Sun May 12, 2013 6:28 pm

Hi Antonio,

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

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Antonio Linares » Sun May 12, 2013 7:08 pm

Hakan,

No, not at all :-)
regards, saludos

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

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Richard Chidiak » Mon May 13, 2013 7: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Antonio Linares » Mon May 13, 2013 8: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 :-)

[Image

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Horizon » Wed Jul 03, 2013 2: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: Select all  Expand view
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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Antonio Linares » Wed Jul 03, 2013 3: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Horizon » Wed Jul 03, 2013 5:05 pm

Antonio,

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

Thanks.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Antonio Linares » Thu Jul 04, 2013 2: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 :-)

Image
regards, saludos

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

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Horizon » 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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Antonio Linares » Thu Jul 04, 2013 2: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Maurizio » Thu Jul 04, 2013 3:55 pm

Hello Antonio ,

great job

works with VS 2010 too
Image

Maurizio

http://www.nipeservice.com
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Antonio Linares » Thu Jul 04, 2013 5:55 pm

Maurizio,

thanks for the feedback :-)
regards, saludos

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

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby elvira » Fri Jul 05, 2013 8:46 am

Antonio,

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

Thanks
elvira
 
Posts: 516
Joined: Fri Jun 29, 2012 12:49 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

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