Wednesday, June 11, 2008

Error code 0x8007007e

Context: Visual Studio 2008, with a Pocket PC 2003 project ported from eVC4. When attempting to run from the IDE, this error message appears:

Unable to start program 'MyProgram.exe'.
An error occurred that usually indicates a corrupt installation (code 0x8007007e). If the problem persists, repair your Visual Studio installation via 'Add or Remove Programs' in Control Panel.


Reason for Error: Project is dynamically linked to MFC, but the neccessary dll files are not deployed to the Emulator.


Solution: Create a new project for Windows Mobile 5.0 in Visual Studio 2008. Look at the setting: "Additional Files" which is in "Configuration Properties Deployment". Copy the value from the new default project into the old project that doesn't work.

Here's the settings for release mode:
msvcr90.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;atl90.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;MFC90U.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;

And the settings for debug mode:
msvcr90.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;atl90.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;msvcr90d.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;MFC90UD.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;

2 comments:

Stefanek said...

Need help. Searched through every possible forum :) Here is the list of actions I did to land in the current position:

1. downloaded qt-everywhere-opensource-src-4.6.0.zip
2. followed the instuctions from:
http://doc.trolltech.com/4.4/install-wince.html especially:
3. set PATH enviromental variable
4. start Visual Studio Command Prompt
5. configure -platform win32-msvc2008 -xplatform wincewm50pocket-msvc2008
7. nmake (compilation took a few hours)
8. installation ActiveSync4.5
9. installation Windows Mobile 5.0 Pocket PC SDK
10. import of the sample project
C:\Qt\qt-everywhere-opensource-src-4.6.0\examples\tutorials\

I've receive this error: 0x80070070 (probably corrupt installation). I've reinstalled Visual Studio with the same effect... New Smart Device Project works fine, only when I start projekt from QT tutorial I've get this error.

I've tried to set path to file manually (screen 1): http://2.bp.blogspot.com/_sgHWyChoMa8/S0UHnfX9PKI/AAAAAAAAMbs/yC50L5QRfM0/s1600-h/path-actual.PNG
(screen 2): http://3.bp.blogspot.com/_sgHWyChoMa8/S0UPhqxtHAI/AAAAAAAAMb0/QzJglUY6DXw/s1600-h/path-literal.PNG

I've also tried setting (this time without screen): Properties | Configuration properties | C/C++ | Code Generation | Runtime library | Multi-threaded (/MT) | someone suggested that and as I said I tried every possible solution... Any help will be appreciated, especially working one with brief description what to set :)

Stefanek said...

Email follow-up comments to mstefanow@gmail.com | in case someone respond to this comment :)