943,882 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 772
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Apr 26th, 2009
0

Cannot open program

Expand Post »
Hi guys , after finishing my text based game , when i send the executable file to my friend he cannot open it .. he get an error that smth is wrong in configs file .. he also has framework installed
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
xVent is offline Offline
54 posts
since Dec 2008
Apr 26th, 2009
0

Re: Cannot open program

Actually this is not very C++ related I think, but OK, can you tell me what error he's having and can you provide me a link to or attach the source of your game to this thread ?
Last edited by tux4life; Apr 26th, 2009 at 11:50 am.
Reputation Points: 2125
Solved Threads: 243
Postaholic
tux4life is offline Offline
2,105 posts
since Feb 2009
Apr 26th, 2009
0

Re: Cannot open program

The problem is most likely DLLs. I have seen similar error on Vista. Make sure you compile the program for Release mode, not Debug mode. How to do that will depend on the compiler you are using.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,952 posts
since Aug 2005
Apr 26th, 2009
0

Re: Cannot open program

So you're saying that if you take the exact same exe and config file that works on your machine and transfer it to your friend's machine, it doesn't work?

Does he have the exact same OS as you? Has he installed your program in the same way as you have?
Reputation Points: 163
Solved Threads: 91
Posting Pro in Training
nucleon is offline Offline
476 posts
since Oct 2008
Apr 26th, 2009
0

Re: Cannot open program

The problem is most likely DLLs. I have seen similar error on Vista. Make sure you compile the program for Release mode, not Debug mode. How to do that will depend on the compiler you are using.
well i gave him the executable file from debug folder .. how can i do what with release ?

Click to Expand / Collapse  Quote originally posted by nucleon ...
So you're saying that if you take the exact same exe and config file that works on your machine and transfer it to your friend's machine, it doesn't work?

Does he have the exact same OS as you? Has he installed your program in the same way as you have?
i gave him just the executable file .. tried with all debug folder ..

@The error says that there is a problem with projects configs ... i dont have any weird thing ... just texts , ifs and whiles ..
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
xVent is offline Offline
54 posts
since Dec 2008
Apr 26th, 2009
0

Re: Cannot open program

> What IDE are you using, Code::Blocks ?
> In Code::Blocks it's easy: Somewhere on the toolbar there's a listbox called Build Target , here you can specify your build configuration ...
Reputation Points: 2125
Solved Threads: 243
Postaholic
tux4life is offline Offline
2,105 posts
since Feb 2009
Apr 26th, 2009
0

Re: Cannot open program

Click to Expand / Collapse  Quote originally posted by xVent ...
well i gave him the executable file from debug folder .. how can i do what with release ?
.
Yes, that is most likely the problem because the other computer doesn't have the compiler's debug dlls installed. How to get release mode depends on the compiler you used, which you failed to mention.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,952 posts
since Aug 2005
Apr 26th, 2009
0

Re: Cannot open program

i use Visual Studio C++ 2008 , on Build Menu , it says Batch Build .. , i clicked Release and it compiled some stuff into release folder , but i dont see any exe in the folder .. what should i give him?
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
xVent is offline Offline
54 posts
since Dec 2008
Apr 26th, 2009
0

Re: Cannot open program

Click to Expand / Collapse  Quote originally posted by xVent ...
i use Visual Studio C++ 2008 , on Build Menu , it says Batch Build .. , i clicked Release and it compiled some stuff into release folder , but i dont see any exe in the folder .. what should i give him?
> Check out this page ...
Reputation Points: 2125
Solved Threads: 243
Postaholic
tux4life is offline Offline
2,105 posts
since Feb 2009
Apr 26th, 2009
0

Re: Cannot open program

1k thanks to all , its working
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
xVent is offline Offline
54 posts
since Dec 2008

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: User file path wont work!! Help!!
Next Thread in C++ Forum Timeline: gtk+ in Dev C++





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


Follow us on Twitter


© 2011 DaniWeb® LLC