Building Harbour + FWH apps from Visual Studio 2012

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Antonio Linares » Fri Jul 05, 2013 11:31 am

FWH provides samples/buildh32.bat to build Harbour and FWH apps using VS2010/2012 :-)
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 norberto » Fri Jul 05, 2013 12:03 pm

Antonio, would somehow make our screens, (resources) within the VS?
Last edited by norberto on Fri Jul 05, 2013 1:25 pm, edited 1 time in total.
norberto
 
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Antonio Linares » Fri Jul 05, 2013 1:07 pm

Norberto,

I have not reviewed it yet, I will do it :-)
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 » Mon Jul 08, 2013 1:15 pm

Hi Antonio,

I have compiled and run the your tutor02 project file in debug mode. When I try to Release mode, it compiles and creates the exe file in Release directory but it does not work anymore.

Any comment? Is exe that is compiled in debug mode safe for end user?

I have also tried another computer with xp. I copied tutor02.exe (Debug). and try to run it. it requires MSVCR110d.dll to run it. After copying the dll file, it runs ok.

I have also tried to release exe. The error message says that requires the MSVCR110.dll. I have found and copied to the path. but it does not run.

Release mode log:
Code: Select all  Expand view
1>------ Rebuild All started: Project: tutor02, Configuration: Release Win32 ------
1>  tutor02.c
1>     Creating library C:\fwteam\samples\tutor02\Release\tutor02.lib and object C:\fwteam\samples\tutor02\Release\tutor02.exp
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>  Generating code
1>  Finished generating code
1>  tutor02.vcxproj -> C:\fwteam\samples\tutor02\Release\tutor02.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
 

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 Horizon » Tue Jul 09, 2013 6:26 pm

Antonio,

Any comment?
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 » Tue Jul 09, 2013 8:29 pm

Hakan,

It seems as we need to set some flag for not using the DLL, as if I build it using buildh32.bat I get an EXE that does not require such DLL.

Also, I have noticed what you have described for release mode. I don't know yet why such different behavior occurs.
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 cnavarro » Tue Jul 09, 2013 8:46 pm

Antonio, yo he obtenido el mismo mensaje

Antonio, I've got the same message

Saludos - regards
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Building Harbour + FWH apps from Visual Studio 2012

Postby Antonio Linares » Wed Jul 10, 2013 6:51 am

Cristobal,

The question is to find why there is such difference
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 10, 2013 9:50 am

..
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 10, 2013 10:18 am

Hakan,

There is nothing else that I can say about it. Just do some research on the VS IDE, google for it, and try to find the differences.

I will also try it here. In the meantime, you can build your app using buildh32.bat
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 » Wed Jul 17, 2013 11:42 am

Hakan,

I think I know where the difference may come from:

FWH has been built using MSVC2010. Now I am organizing it to build it with MSVC2012, once it is ready
I will check if the problem gets solved :-)
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 17, 2013 11:54 am

Antonio Linares wrote:Hakan,

I think I know where the difference may come from:

FWH has been built using MSVC2010. Now I am organizing it to build it with MSVC2012, once it is ready
I will check if the problem gets solved :-)


Thanks Antonio.

waiting.
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 17, 2013 12:01 pm

Building Harbour also with VS2012 this way:
Code: Select all  Expand view

call "%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat"
win-make.exe
 


next, build FWH with VS2012...
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 » Wed Jul 17, 2013 3:47 pm

Harbour already built with VS2012 :-)

Now building FWH with VS2012. There is a missing file that I am trying to locate on VS2012:
fatal error C1083: Cannot open include file: 'tmschema.h': No such file or directory
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 » Wed Jul 17, 2013 3:50 pm

Solution found:
#if _MSC_VER < 1700 // Before Visual Studio 2012
#include <tmschema.h>
#endif

https://code.google.com/p/evita-common-lisp/source/browse/listener/winapp/precomp.h
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

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 48 guests