472,993 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 software developers and data experts.

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 2522

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
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.