473,473 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

Hello,

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\StdAf x.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"
Creating temporary file "c:\programme\Microsoft Visual
Studio\MyProjects\ostroottemp\OSTROOT\OSTDLL\Debug \RSP00000619441540.rsp"
with contents
[
/o ".\Debug/OSTDLL.bsc"

".\Debug\ini2.sbr"

".\Debug\Log.sbr"

".\Debug\OST.sbr"

".\Debug\OSTBouguetCameraModel.sbr"

".\Debug\OSTBoundingBox.sbr"

".\Debug\OSTCameraModel.sbr"

".\Debug\OSTCFG.sbr"

".\Debug\OSTEpipolGeoProcessor.sbr"

".\Debug\OSTFeatureModel.sbr"

".\Debug\OSTFeatureProcessor.sbr"

".\Debug\OSTFeatureProcessorCFG.sbr"

".\Debug\OSTFoursaCameraModel.sbr"

".\Debug\OSTGUIDlgEpipolGeoProcessor.sbr"

".\Debug\OSTGUIDlgPositionProcessor.sbr"

".\Debug\OSTIndexTransformer.sbr"

".\Debug\OSTKalmanFilterProcessor.sbr"

".\Debug\OSTmainCFG.sbr"

".\Debug\OSTOutputFilterProcessor.sbr"

".\Debug\OSTPositionBouguetProcssor.sbr"

".\Debug\OSTPositionFoursaProcssor.sbr"

".\Debug\OSTProcessor.sbr"

".\Debug\OSTRectifySystemProcessor.sbr"

".\Debug\OSTRoundFeatureProcessor.sbr"

".\Debug\OSTSearchWindow.sbr"

".\Debug\OSTSquareFeatureProcessor.sbr"

".\Debug\Sliders.sbr"

".\Debug\SmartEdit.sbr"

".\Debug\StdAfx.sbr"
]
Creating command line "bscmake.exe @"c:\programme\Microsoft Visual
Studio\MyProjects\ostroottemp\OSTROOT\OSTDLL\Debug \RSP00000619441540.rsp"
/nologo"
Output Window Compiling...
StdAfx.cpp
c:\programme\Microsoft Visual
Studio\MyProjects\ostroottemp\OSTROOT\OSTDLL\StdAf x.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
Results 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)

I have already read following article:
PRB: Porting MFC Projects to Visual C++ .NET Changes Target Operating System
http://support.microsoft.com/default...en-us%3B320479
Article ID : 320479

which adresses the problem of porting an MFC application
According to this i chamged my StdAfx.h (inserted "#define _WIN32_WINNT
0x0400" in StdAfx.h)

Here is how my StdAfx.h :

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#if !defined(AFX_STDAFX_H__9AE25BA0_6F53_4A34_B6F0_E60 305EDD709__INCLUDED_)
#define AFX_STDAFX_H__9AE25BA0_6F53_4A34_B6F0_E60305EDD709 __INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers

//this is important for the porting to dotnet
#define _WIN32_WINNT 0x0400

#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately
before the previous line.

#endif //
!defined(AFX_STDAFX_H__9AE25BA0_6F53_4A34_B6F0_E60 305EDD709__INCLUDED_)

Where is the bug? What can i do?
Any help is appreciated!

--
best regards,
gerd
Jul 21 '05 #1
0 2564

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jack | last post by:
Will these be add-ons to Whidby?
2
by: Bootstrap Bill | last post by:
A new Google group has been formed for the purpose of discussing the new Visual Studio Express products. http://groups-beta.google.com/group/Visual-Studio-Express The products are currently in...
0
by: gerd | last post by:
Hello, 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:...
4
by: Andrew Robinson | last post by:
My main dev machine has WinXp and VS2005 (pro). 1. I need to install VWD Express Edition so that I can do some instruction on this. Any issues with both on the same machine. Installation order?...
2
by: Progman | last post by:
I have Visual Studio 2005 Standard edition. Is ti the same thing as the Express edition or Standard is more?
1
by: Jimmy Zhang | last post by:
Hi, I was using JLCA to convert some code to C# and app performance just dropped a bit, I am wondering if any one can point me to some good reference on C# performance tuning tricks... Cheers, jz
5
by: cj | last post by:
I'm getting started writing WEB program in VB2005. I'm been doing windows apps to date. A friend told me to get Visual Web Developer Express Edition. But I have Visual Studio Pro 2005 and it...
0
by: fischermx | last post by:
Environment: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727 Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack...
1
by: Dr T | last post by:
Hi! I downloaded MS Visual Web Developer 2005 Express Edition, MS .NET Framework SDK v2.0, and MS SQL Server 2005. Subsequently, I bought MS Visual Studio 2005 Professional Edition. 1) Are...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.