473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 2775

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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.