Cannot open program

Reply

Join Date: Dec 2008
Posts: 41
Reputation: xVent is an unknown quantity at this point 
Solved Threads: 0
xVent xVent is offline Offline
Light Poster

Cannot open program

 
0
  #1
Apr 26th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 2,029
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 224
tux4life's Avatar
tux4life tux4life is offline Offline
Postaholic

Re: Cannot open program

 
0
  #2
Apr 26th, 2009
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 10:50 am.
"You can't build a reputation on what you are going to do."
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 16,601
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1614
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Cannot open program

 
0
  #3
Apr 26th, 2009
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.
The most important thing in the Olympic Games is not to win but to take part, just as the most important thing in life is not the triumph but the struggle. The essential thing is not to have conquered but to have fought well.
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 476
Reputation: nucleon has a spectacular aura about nucleon has a spectacular aura about 
Solved Threads: 91
nucleon's Avatar
nucleon nucleon is offline Offline
Posting Pro in Training

Re: Cannot open program

 
0
  #4
Apr 26th, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 41
Reputation: xVent is an unknown quantity at this point 
Solved Threads: 0
xVent xVent is offline Offline
Light Poster

Re: Cannot open program

 
0
  #5
Apr 26th, 2009
Originally Posted by Ancient Dragon View Post
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 ?

Originally Posted by nucleon View Post
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 ..
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 2,029
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 224
tux4life's Avatar
tux4life tux4life is offline Offline
Postaholic

Re: Cannot open program

 
0
  #6
Apr 26th, 2009
> 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 ...
"You can't build a reputation on what you are going to do."
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 16,601
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1614
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Cannot open program

 
0
  #7
Apr 26th, 2009
Originally Posted by xVent View Post
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.
The most important thing in the Olympic Games is not to win but to take part, just as the most important thing in life is not the triumph but the struggle. The essential thing is not to have conquered but to have fought well.
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 41
Reputation: xVent is an unknown quantity at this point 
Solved Threads: 0
xVent xVent is offline Offline
Light Poster

Re: Cannot open program

 
0
  #8
Apr 26th, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 2,029
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 224
tux4life's Avatar
tux4life tux4life is offline Offline
Postaholic

Re: Cannot open program

 
0
  #9
Apr 26th, 2009
Originally Posted by xVent View Post
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 ...
"You can't build a reputation on what you are going to do."
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 41
Reputation: xVent is an unknown quantity at this point 
Solved Threads: 0
xVent xVent is offline Offline
Light Poster

Re: Cannot open program

 
0
  #10
Apr 26th, 2009
1k thanks to all , its working
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 604 | Replies: 10
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC