port an visual studio 6 MFC application to visual c++ 2005 express

port an visual studio 6 MFC application to visual c++ 2005 express

Post by Gerd.Kelle » Thu, 17 Mar 2005 21:59:16


ello,

I want to port an MFC Application from Visual Studio 6 MFC application to
Visual C++ 2005 express edition beta.

While building i get following error:

***************************************************************************
------ Build started: Project: OSTDLL, Configuration: Debug Win32 ------
Compiling...
StdAfx.cpp
c:\programme\Microsoft Visual
Studio\MyProjects\ostroottemp\OSTROOT\OSTDLL\StdAfx.h(41) : fatal error
C1083: Cannot open include file: 'afxcmn.h': No such file or directory
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.40607
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\Debug\ini2.sbr': No such file
or
directory
Build log was saved at "file://c:\programme\Microsoft Visual
Studio\MyProjects\ostroottemp\OSTROOT\OSTDLL\Debug\BuildLog.htm"
OSTDLL - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
***************************************************************************

the build log is:

***************************************************************************
Build Log Build started: Project: OSTDLL, Configuration: Debug|Win32
Command Lines Creating temporary file "c:\programme\Microsoft Visual
Studio\MyProjects\ostroottemp\OSTROOT\OSTDLL\Debug\RSP00000419441540.rsp"
with contents
[
/Od /I "../cppunit-1.10.2/include/" /I "../include/OPENCVB4/" /I
"../include/OPENCVcxcoreb4/" /I "../include/highguib4/" /D "_USRDLL" /D
"_AFXDLL" /D "_AFXEXT" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D
"OST_DLL_EXPORTS" /D "_WINDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /GR
/Yc"stdafx.h" /Fp".\Debug/OSTDLL.pch" /Fo".\Debug/" /Fd".\Debug/"
/FR".\Debug/" /W3 /c /ZI /TP

".\StdAfx.cpp"
]
Creating command line "cl.exe @"c:\programme\Microsoft Visual
Studio\MyProjects\ostroottemp\OSTROOT\OSTDLL\Debug\RSP00000419441540.rsp"
/nologo"
Creating temporary file "c:\programme\Microsoft Visual
Studio\MyProjects\ostroottemp\OSTROOT\OSTDLL\Debug\RSP00000519441540.rsp"
with contents
[
/Od /I "../cppunit-1.10.2/include/" /I "../include/OPENCVB4/" /I
"../include/OPENCVcxcoreb4/" /I "../include/highguib4/" /D "_USRDLL" /D
"_AFXDLL" /D "_AFXEXT" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D
"OST_DLL_EXPORTS" /D "_WINDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /GR
/Yu"stdafx.h" /Fp".\Debug/OSTDLL.pch" /Fo".\Debug/" /Fd".\Debug/"
/FR".\Debug/" /W3 /c /ZI /TP

".\SmartEdit.cpp"

".\Sliders.cpp"

".\OSTSquareFeatureProcessor.cpp"

".\OSTSearchWindow.cpp"

".\OSTRoundFeatureProcessor.cpp"

".\OSTRectifySystemProcessor.cpp"

".\OSTProcessor.cpp"

".\OSTPositionFoursaProcssor.cpp"

".\OSTPositionBouguetProcssor.cpp"

".\OSTOutputFilterProcessor.cpp"

".\OSTmainCFG.cpp"

".\OSTKalmanFilterProcessor.cpp"

".\OSTIndexTransformer.cpp"

".\OSTGUIDlgPositionProcessor.cpp"

".\OSTGUIDlgEpipolGeoProcessor.cpp"

".\OSTFoursaCameraModel.cpp"

".\OSTFeatureProcessorCFG.cpp"

".\OSTFeatureProcessor.cpp"

".\OSTFeatureModel.cpp"

".\OSTEpipolGeoProcessor.cpp"

".\OSTCFG.cpp"

".\OSTCameraModel.cpp"

".\OSTBoundingBox.cpp"

".\OSTBouguetCameraModel.cpp"

".\OST.cpp"

".\Log.cpp"

".\ini2.cpp"
]
Creating command line "cl.exe @"c:\programme\Microsoft Visual
Studio\MyProjects\ostroottemp\OSTROOT\OSTDLL\Debug\RSP00000519441540.rsp"
/nologo"
 
 
 

port an visual studio 6 MFC application to visual c++ 2005 express

Post by Bo Persso » Fri, 18 Mar 2005 03:56:07


"Gerd.Keller" < XXXX@XXXXX.COM > skrev i meddelandet

snip

The problem is that MFC is not included in the Express edition. You need
to use some other edition, like the Professional.


MFC is very much supported (except for the Express Edition...). You
cannot use a version 6 library with a version 8 compiler though.


Doesn't work either. :-(


Bo Persson

 
 
 

port an visual studio 6 MFC application to visual c++ 2005 express

Post by Gerd.Kelle » Fri, 18 Mar 2005 21:13:07

Hello Bo,

First of all "Thanks for your answer"


I want to use an free alternative IDE for my project.
Visual Studio 6 is quiete old now. Simple refactoring tasks are a lot of
work with it.

Do you know a free alternative IDE for visual studio 6?

support for Active X, MFC is needed

Greetings Gerd
 
 
 

port an visual studio 6 MFC application to visual c++ 2005 express

Post by Mark Randa » Fri, 18 Mar 2005 23:29:49

You are never going to get MFC for free =\

Best bet is to get 2005 pro when available.

- MR
 
 
 

port an visual studio 6 MFC application to visual c++ 2005 express

Post by Bo Persso » Sat, 19 Mar 2005 02:21:09


"Gerd.Keller" < XXXX@XXXXX.COM > skrev i meddelandet


No, no really.

I am using VS 2003 Pro and VS 2005 Beta 1, where you could get the Pro
version almost for free last summer.

If you consider that MS seems to be a year or three late with their
upgrades, it doesn't really cost that much to keep up to date.

Since 1998 (VC6) I have paid ~$300 for a VS2002 upgrade and $29 for the
VS2003. The 2005 Beta was €6 in 2004. :-)

That's not much over 7 years, is it?


Bo Persson
 
 
 

port an visual studio 6 MFC application to visual c++ 2005 express

Post by Joseph M. » Mon, 21 Mar 2005 03:22:06

s afxcmn.h installed ANYWHERE in the install tree for VS? Note that the target
directories are quite different in .NET, so if your project had hardwired searches to the
VS6 directory paths, they will no longer work, and you need to make sure you have the
appropriate search paths for VS.NET 2005 set up.

MFC is still supported; I never know why these questions keep coming up.

Actually 0x0500 is more useful than 0x400. This describes the platform, and it means that
you will have Win2K APIs available to you, should you need them. It is unrelated to your
include failure, however.

You cannot use any of the VS6 libraries or source code; the new wizards make assumptions
about what MFC does and does not support.

Actually, the world would be vastly improved if we could use the new MFC with the old VS6
IDE, which was a usable IDE.

If you can't find afxcmn.h anywhere, try a reinstall and make sure you have selected all
the correct install options.

A search starting at the root of the VS.NET 2005 directory for afxcmn.h should be done.
Don't assume it is in the same place it was in the VS6 install tree.
joe


On Wed, 16 Mar 2005 04:59:16 -0800, "Gerd.Keller" < XXXX@XXXXX.COM > wrote:


Joseph M. Newcomer [MVP]
email: XXXX@XXXXX.COM
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm