Conversion Wizard 2008 to 2010 - cannot find file

Trips

Well-known member
Joined
Aug 7, 2010
Messages
2,788
After using the conversion wizard to convert a VC++ 2008 project to VC++ 2010, when I try to debug I get the error:
---------------------------<br/>
Unable to start program C:UsersCarlDocumentsMy DropboxProjectOGLES20OpenGL_ES_Programming_Guide_v1.0.2Chapter_15GeoLithKDDebugGeoLithKD.exe.
The system cannot find the file specified.
---------------------------
No warnings were issued during the conversion, but from some research I believe that there are issues with some "complex" project configurations.
The exe is built where expected and runs corrctly when I double-click it.
The project is taken from the OpenGL ES Programming Guide v1.0.2.
The 2008 version of the code works without any issues.
There are two projects in the solution and setting as startup project gave the same result.
Ive edited the project settings and changed the output directory from $(SolutionDir)$(Configuration) to the bin directory, similarly I changed the Linker output file to an absolute path from ....Bin$(ProjectName).exe. Neither change helped.
Below is an extract (hopefully of the salient parts) from the vcproj file.
<?xml version="1.0" encoding="Windows-1252"?><br/>
<VisualStudioProject<br/>
ProjectType="Visual C++"<br/>
Version="9.00"<br/>
Name="GeoLithKD"<br/>
ProjectGUID="{6BE6BD94-F794-471D-9A9D-EFC01498D8B5}"<br/>
RootNamespace="GeoLithKD"<br/>
Keyword="Win32Proj"<br/>
TargetFrameworkVersion="131072"<br/>
><br/>
<Configurations><br/>
<Configuration<br/>
Name="Debug|Win32"<br/>
OutputDirectory="$(SolutionDir)$(ConfigurationName)"<br/>
IntermediateDirectory="$(ConfigurationName)"<br/>
ConfigurationType="1"<br/>
CharacterSet="1"<br/>
><br/>
<Tool<br/>
Name="VCCLCompilerTool"<br/>
AdditionalOptions="/MP"<br/>
Optimization="0"<br/>
AdditionalIncludeDirectories="....CommonInclude"<br/>
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"<br/>
MinimalRebuild="true"<br/>
BasicRuntimeChecks="3"<br/>
RuntimeLibrary="3"<br/>
UsePrecompiledHeader="0"<br/>
WarningLevel="3"<br/>
Detect64BitPortabilityProblems="true"<br/>
DebugInformationFormat="4"<br/>
/><br/>
<Tool<br/>
Name="VCLinkerTool"<br/>
AdditionalDependencies="libEGL.lib libKD.lib libGLESv2.lib esUtil.lib"<br/>
OutputFile="....Bin$(ProjectName).exe"<br/>
LinkIncremental="1"<br/>
AdditionalLibraryDirectories="....CommonLib;....Lib"<br/>
GenerateManifest="true"<br/>
GenerateDebugInformation="true"<br/>
SubSystem="2"<br/>
RandomizedBaseAddress="1"<br/>
DataExecutionPrevention="0"<br/>
TargetMachine="1"<br/>
/><br/>
</Configuration><br/>
<Configuration<br/>
Name="Release|Win32"<br/>
OutputDirectory="$(SolutionDir)$(ConfigurationName)"<br/>
IntermediateDirectory="$(ConfigurationName)"<br/>
ConfigurationType="1"<br/>
CharacterSet="1"<br/>
WholeProgramOptimization="1"<br/>
><br/>
<Tool<br/>
Name="VCCLCompilerTool"<br/>
AdditionalIncludeDirectories="....CommonInclude"<br/>
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"<br/>
RuntimeLibrary="2"<br/>
UsePrecompiledHeader="0"<br/>
WarningLevel="3"<br/>
Detect64BitPortabilityProblems="true"<br/>
DebugInformationFormat="3"<br/>
/><br/>
<Tool<br/>
Name="VCLinkerTool"<br/>
AdditionalDependencies="libEGL.lib libKD.lib libGLESv2.lib"<br/>
OutputFile="....Bin$(ProjectName).exe"<br/>
LinkIncremental="2"<br/>
AdditionalLibraryDirectories="....CommonLib;....Lib"<br/>
GenerateManifest="true"<br/>
GenerateDebugInformation="true"<br/>
SubSystem="2"<br/>
OptimizeReferences="2"<br/>
EnableCOMDATFolding="2"<br/>
RandomizedBaseAddress="1"<br/>
DataExecutionPrevention="0"<br/>
TargetMachine="1"<br/>
/>
TIA
Carl Bateman

View the full article
 
Back
Top