Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

App doesn't run at windows Xp

Posted on 2004-08-09
7
187 Views
Last Modified: 2010-04-01
Hi,

    I am having some problem with MFC application. I did an MFC application in windows 2000 ( It runs ok), but when i try to execute at windows Xp the app doesn't work. The erro is: Error initializing the system, configuration is wrong. Try to reinstall the software to fix this problem.
    Do you have any idea what it is? (I have included all dll that the program requires)

   
0
Comment
Question by:emu10k1
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 11751514
Mabe you forgot to copy the ini file of your app to the windows directory? Or is the app's configuration file in the registry? You may search your Win2k registry for the name of your application. If you find something, export that branch to .reg file, copy it to your winxp system (e. g. by floppy) and double-click the file using the explorer.

Good luck.

Regards, Alex

0
 
LVL 86

Expert Comment

by:jkr
ID: 11752134
>>Do you have any idea what it is? (I have included all dll that the program requires)

You might want to double-check that using the tool from www.dependencywalker.com
0
 
LVL 2

Expert Comment

by:guntherothk
ID: 11753042
It is possible for the program to check the operating system version by inspecting the value returned by GetVersion(). If the program was written for win2000, it may be checking for a specific version instead of for a range of versions, and printing this message when it sees it's running on XP. Look in the sources for a call to GetVersion().
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:emu10k1
ID: 11756315
The Error: it fails in the inicialization of the system due to an error of configuration.  The problem can be solved reinstalling software.

It seems to be something that MFC app  use but i don't  know what, therefore i made a deployment project and the app's configuration file is ok in the registry.
0
 
LVL 86

Expert Comment

by:jkr
ID: 11759174
Have you tried the dependency walker  on th system in question?
0
 

Author Comment

by:emu10k1
ID: 11766984
I found the error but i dont know why it is happening. The problem was the name of my configuration file. The name is ManutencaoBaseDados.exe.config and when i put ManutencaoBaseDados.config it works. My project´s name is ManutencaoBaseDados, does it have any problem? Just remenbering that in windows 2000 works with the first name.  
0
 
LVL 39

Accepted Solution

by:
itsmeandnobodyelse earned 500 total points
ID: 11770063
>> ManutencaoBaseDados.exe.config

That is a very 'strange' name because of the ".exe" part. I suppose that there is any subsystem on XP that checks the file for being an executable - maybe an antivirus software - and fails because of that.

I would strongly recommend to use the new name.

Regards, Alex
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MSVCR80.dll crash 2 141
C language IDE – Compilers installation 14 75
IdTCPClient1->Disconnect(); not working 3 77
How to convert MFC::CString to UTF8 wchar_t* 10 284
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question