472,965 Members | 2,326 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,965 software developers and data experts.

port from visual studio 6

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
Nov 22 '05 #1
0 2741

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

Similar topics

1
by: Rudy Ko | last post by:
Dear All, I have Apache using port 80. So I changed IIS to use port 8000 as default web service. After that all my .net projects were not able to load into Visual Studio .net. Do you know how to...
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:...
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:...
0
by: MichaelR | last post by:
I have an ASP.NET application that I coded with a text editor and command line compiler. I'm trying to port it to Visual Studio for the IDE tools and debugger, but am having a lot of problem with...
0
by: amjad | last post by:
Dear All, I am using Visual Studio beta 2005 beta 2 with ASP.Net 2.0 and C#.I run the application and it work correctly with http://localhost:port/projectname/page but not with...
1
by: henrycortezwu | last post by:
Hi All, I'm trying to connect to a virtual port (COM19, OUTGOING, "Bluetooth Serial Port") using VS2005 System.IO.Ports. When I ran the ff code below here's what happens. 1) VS2005 Compiles w/o...
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
23
by: Marco | last post by:
Could anyone please tell me why the program has the following error? I copy the program from http://www.beyondlogic.org/parlcd/parlcd.htm ...
0
by: stewart | last post by:
Hi. I have an asp.net web application. Normally when i want to build and run it I press CTRL + F5, this starts the cassini web server and opens a browser window where the url is...
4
by: nmrcarl | last post by:
I'm trying to upgrade a large project from VS 6.0 to VS 2005. After fixing a lot of things that changed (mostly sloppy coding in the original project that VS2005 didn't allow), I got the release...
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
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
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 :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
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...

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.