943,859 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 10446
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Jan 13th, 2008
0

application configuration incorrect error

Expand Post »
Hello everyone,

i have the following code

cpp Syntax (Toggle Plain Text)
  1. #include <iostream>
  2. #include <conio.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. cout<<"\nPress Any Key To Continue ";
  8. getch();
  9. return 0;
  10. }

it compiles fine on my windows xp using microsoft visual c++ , and i can run the resultant executable file with no problems at all , but when i copy that executable file to another computer and try to run it i get an error that says "application failed to start because application configuration is incorrect".

help please.
Similar Threads
Reputation Points: 11
Solved Threads: 8
Junior Poster
hashinclude is offline Offline
111 posts
since May 2007
Jan 13th, 2008
0

Re: application configuration incorrect error

What Operating System does you other computer have?

What happens if you take out the conio header and change it to:-

C++ Syntax (Toggle Plain Text)
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. cin.get();
  7. return 0;
  8. }
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 13th, 2008
0

Re: application configuration incorrect error

Click to Expand / Collapse  Quote originally posted by iamthwee ...
What Operating System does you other computer have?

What happens if you take out the conio header and change it to:-

C++ Syntax (Toggle Plain Text)
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. cin.get();
  7. return 0;
  8. }
the other computer's OS is the same and i must use getch()
Reputation Points: 11
Solved Threads: 8
Junior Poster
hashinclude is offline Offline
111 posts
since May 2007
Jan 13th, 2008
0

Re: application configuration incorrect error

The other things I can think of is that you might be using the dubug exe, as opposed to the release exe.

Quote ...
All program examples in [...] are built in Debug mode. To create a Release Mode version we have to change the Visual C++ project to a Release Mode. After rebuilding the program, the executable should be portable on Windows machine.
Last edited by iamthwee; Jan 13th, 2008 at 6:40 am.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 13th, 2008
0

Re: application configuration incorrect error

Click to Expand / Collapse  Quote originally posted by iamthwee ...
The other things I can think of is that you might be using the dubug exe, as opposed to the release exe.
indeed i was building in debug mode , i changed that and built in release mode but that didn't change anything and i still got the error
Reputation Points: 11
Solved Threads: 8
Junior Poster
hashinclude is offline Offline
111 posts
since May 2007
Jan 13th, 2008
0

Re: application configuration incorrect error

What version of studio is it?

Make sure it doens't need the dotnet framework. I have never used visual c++ so I don't know.

This is why I like dev-cpp.
http://www.bloodshed.net/devcpp.html

I have no problems, and the exe generated is good to go on any windows machine.
Last edited by iamthwee; Jan 13th, 2008 at 8:38 am.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 13th, 2008
0

Re: application configuration incorrect error

> but when i copy that executable file to another computer and try to run it i get an error
> that says "application failed to start because application configuration is incorrect".

you also need to copy the manifest file created when linking the application. (the manifest file contains information about the application's dependencies such as the runtime libraries.) the manifest file needs to be copied into the same location as the executable image (.exe).
Reputation Points: 1159
Solved Threads: 285
Posting Virtuoso
vijayan121 is offline Offline
1,606 posts
since Dec 2006
Jan 13th, 2008
0

Re: application configuration incorrect error

Click to Expand / Collapse  Quote originally posted by vijayan121 ...
> but when i copy that executable file to another computer and try to run it i get an error
> that says "application failed to start because application configuration is incorrect".

you also need to copy the manifest file created when linking the application. (the manifest file contains information about the application's dependencies such as the runtime libraries.) the manifest file needs to be copied into the same location as the executable image (.exe).
i copied a file with the extension "manifest" , but it didn't help , in my code , if i don't include "conio.h" , i stop getting the error , so the "conio" header file is causing this ?
Reputation Points: 11
Solved Threads: 8
Junior Poster
hashinclude is offline Offline
111 posts
since May 2007
Jan 13th, 2008
0

Re: application configuration incorrect error

Are you saying the program works ok on the different system when you take out the conio.h and include the manifest file?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 13th, 2008
0

Re: application configuration incorrect error

Click to Expand / Collapse  Quote originally posted by iamthwee ...
Are you saying the program works ok on the different system when you take out the conio.h and include the manifest file?
when i take out the conio.h , it works without copying the manifest file but even when i had conio.h included , the manifest file didnt help
Reputation Points: 11
Solved Threads: 8
Junior Poster
hashinclude is offline Offline
111 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: MATRIX algebra pracice problem solved
Next Thread in C++ Forum Timeline: Array of words





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC