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:

And the settings for debug mode:


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
2. followed the instuctions from: 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

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):
(screen 2):

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 | in case someone respond to this comment :)