Page 2 of 3

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Fri Jul 05, 2013 11:31 am
by Antonio Linares
FWH provides samples/buildh32.bat to build Harbour and FWH apps using VS2010/2012 :-)

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Fri Jul 05, 2013 12:03 pm
by norberto
Antonio, would somehow make our screens, (resources) within the VS?

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Fri Jul 05, 2013 1:07 pm
by Antonio Linares
Norberto,

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

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Mon Jul 08, 2013 1:15 pm
by Horizon
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.

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Tue Jul 09, 2013 6:26 pm
by Horizon
Antonio,

Any comment?

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Tue Jul 09, 2013 8:29 pm
by Antonio Linares
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.

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Tue Jul 09, 2013 8:46 pm
by cnavarro
Antonio, yo he obtenido el mismo mensaje

Antonio, I've got the same message

Saludos - regards

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Wed Jul 10, 2013 6:51 am
by Antonio Linares
Cristobal,

The question is to find why there is such difference

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Wed Jul 10, 2013 9:50 am
by Horizon
..

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Wed Jul 10, 2013 10:18 am
by Antonio Linares
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

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Wed Jul 17, 2013 11:42 am
by Antonio Linares
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 :-)

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Wed Jul 17, 2013 11:54 am
by Horizon
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.

Re: Building Harbour + FWH apps from Visual Studio 2012

PostPosted: Wed Jul 17, 2013 12:01 pm
by Antonio Linares
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...

Re: Building Harbour + FWH apps from Visual Studio 2012

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

Re: Building Harbour + FWH apps from Visual Studio 2012

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