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
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: 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
Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Fri Jul 05, 2013 12:03 PM

Antonio, would somehow make our screens, (resources) within the VS?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Fri Jul 05, 2013 01:07 PM

Norberto,

I have not reviewed it yet, I will do it :-)

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: Mon Jul 08, 2013 01: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 (fw): Select all Collapse
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.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Tue Jul 09, 2013 06:26 PM

Antonio,

Any comment?

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: Tue Jul 09, 2013 08: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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Tue Jul 09, 2013 08: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Wed Jul 10, 2013 06:51 AM

Cristobal,

The question is to find why there is such difference

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 10, 2013 09:50 AM

..

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 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: 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
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: 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.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Wed Jul 17, 2013 12:01 PM
Building Harbour also with VS2012 this way:
Code (fw): Select all Collapse
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Wed Jul 17, 2013 03: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Building Harbour + FWH apps from Visual Studio 2012
Posted: Wed Jul 17, 2013 03: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