Page 1 of 3

Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Sun May 12, 2013 5:07 pm
by Antonio Linares
Image

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Sun May 12, 2013 5:26 pm
by Antonio Linares
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

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Sun May 12, 2013 6:28 pm
by Horizon
Hi Antonio,

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

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Sun May 12, 2013 7:08 pm
by Antonio Linares
Hakan,

No, not at all :-)

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Mon May 13, 2013 7:36 am
by Richard Chidiak
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

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Mon May 13, 2013 8:14 am
by Antonio Linares
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

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Wed Jul 03, 2013 2:13 pm
by Horizon
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

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Wed Jul 03, 2013 3:30 pm
by Antonio Linares
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

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Wed Jul 03, 2013 5:05 pm
by Horizon
Antonio,

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

Thanks.

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Thu Jul 04, 2013 2:44 am
by Antonio Linares
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

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Thu Jul 04, 2013 11:38 am
by Horizon
Thank you Antonio,

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

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Thu Jul 04, 2013 2:43 pm
by Antonio Linares
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.

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Thu Jul 04, 2013 3:55 pm
by Maurizio
Hello Antonio ,

great job

works with VS 2010 too
Image

Maurizio

http://www.nipeservice.com

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Thu Jul 04, 2013 5:55 pm
by Antonio Linares
Maurizio,

thanks for the feedback :-)

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Fri Jul 05, 2013 8:46 am
by elvira
Antonio,

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

Thanks