User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 456,453 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,638 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 1853 | Replies: 11
Reply
Join Date: Jan 2008
Location: USA East Cost
Posts: 392
Reputation: CoolGamer48 is on a distinguished road 
Rep Power: 1
Solved Threads: 37
CoolGamer48's Avatar
CoolGamer48 CoolGamer48 is offline Offline
Posting Whiz

Help This application has failed to start becuase the application configuration is incorre

  #1  
Mar 18th, 2008
Hey - sorry if this is the wrong place for this.

I have this basic chess game I'm making, and I'm done with the first alpha build of it. It works fine when I compile it on my own computer, but when I bring the exe to a different computer, I get this error:

This application has failed to start becuase the application configuration is incorrect. Reinstalling the application may fix this problem.

Does anyone know how to fix this? I have the proper images in the same folder as the application. If anyone wants to try it for themselves: http://www.mediafire.com/?mgzmb3y94ty.

The program uses DirectX9. To my knowlege the computers I ran them on had DirectX, and even if they didn't, I'm under the impression that the program would at least run and give some sort of error once it gets to the DirectX code, not just refuse to run.
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 972
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: This application has failed to start becuase the application configuration is incorre

  #2  
Mar 18th, 2008
The computer that gets that error is missing one or more DLLs that are needed by the program. Make sure the program has been compiled for release mode instead of debug mode.
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
Reply With Quote  
Join Date: Jan 2008
Location: USA East Cost
Posts: 392
Reputation: CoolGamer48 is on a distinguished road 
Rep Power: 1
Solved Threads: 37
CoolGamer48's Avatar
CoolGamer48 CoolGamer48 is offline Offline
Posting Whiz

Re: This application has failed to start becuase the application configuration is incorre

  #3  
Mar 18th, 2008
How do you do that in VC++ 08? Does that solve the DLL problem, or is that still the fault of the computer? Does that mean that the computer is missing the DirectX SDK?
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 972
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: This application has failed to start becuase the application configuration is incorre

  #4  
Mar 18th, 2008
>>How do you do that in VC++ 08?
On my computer which has the default installation, just under the Help menu at the top is a combo box that you can set to either Debug or Release. Make sure its set to Release when you compile the program.

>> Does that solve the DLL problem
Not necessarily. There may be other DLLs that are not installed on the other computer

>>or is that still the fault of the computer
No -- its your fault for failing to install the proper DLLs.

>>Does that mean that the computer is missing the DirectX SDK?
Not the SDK but there are probably some redistributable DLLs. Look in the Microsoft DirectX SDK folder under Program Files and find a folder Developer Runtime. Those might be the DLLs you need to install with your program. Just copy them into the same folder where you installed your program.
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
Reply With Quote  
Join Date: Jan 2008
Location: USA East Cost
Posts: 392
Reputation: CoolGamer48 is on a distinguished road 
Rep Power: 1
Solved Threads: 37
CoolGamer48's Avatar
CoolGamer48 CoolGamer48 is offline Offline
Posting Whiz

Re: This application has failed to start becuase the application configuration is inc

  #5  
Mar 18th, 2008
Um, what exactly does compiling it as release change, because I get linker errors when I do that. (debug is fine)
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
Reply With Quote  
Join Date: Nov 2007
Posts: 894
Reputation: mitrmkar is a jewel in the rough mitrmkar is a jewel in the rough mitrmkar is a jewel in the rough mitrmkar is a jewel in the rough 
Rep Power: 6
Solved Threads: 184
mitrmkar mitrmkar is offline Offline
Practically a Posting Shark

Re: This application has failed to start becuase the application configuration is inc

  #6  
Mar 18th, 2008
Originally Posted by CoolGamer48 View Post
Um, what exactly does compiling it as release change
The release version of your program requires a different set of .dlls to be present on the target system.
What linker errors are you receiving?
Reply With Quote  
Join Date: Jan 2008
Location: USA East Cost
Posts: 392
Reputation: CoolGamer48 is on a distinguished road 
Rep Power: 1
Solved Threads: 37
CoolGamer48's Avatar
CoolGamer48 CoolGamer48 is offline Offline
Posting Whiz

Re: This application has failed to start becuase the application configuration is inc

  #7  
Mar 18th, 2008
Originally Posted by mitrmkar View Post
The release version of your program requires a different set of .dlls to be present on the target system.
What linker errors are you receiving?

here's the log:

------ Build started: Project: Chess_2D, Configuration: Release Win32 ------
Linking...
dxgraphics.obj : error LNK2001: unresolved external symbol _D3DXCreateTextureFromFileExA@56
dxgraphics.obj : error LNK2001: unresolved external symbol _D3DXGetImageInfoFromFileA@8
dxgraphics.obj : error LNK2001: unresolved external symbol _D3DXLoadSurfaceFromFileA@32
dxgraphics.obj : error LNK2001: unresolved external symbol _Direct3DCreate9@4
dxinput.obj : error LNK2001: unresolved external symbol _GUID_SysMouse
dxinput.obj : error LNK2001: unresolved external symbol _c_dfDIMouse
dxinput.obj : error LNK2001: unresolved external symbol _DirectInput8Create@20
dxinput.obj : error LNK2001: unresolved external symbol _IID_IDirectInput8A
game.obj : error LNK2001: unresolved external symbol _D3DXCreateSprite@8
game.obj : error LNK2001: unresolved external symbol _D3DXCreateFontA@48
C:\Documents and Settings\Alec_2\Desktop\3D Chess Project\Chess_2D\Release\Chess_2D.exe : fatal error LNK1120: 10 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Alec_2\Desktop\3D Chess Project\Chess_2D\Chess_2D\Release\BuildLog.htm"
Chess_2D - 11 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 972
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: This application has failed to start becuase the application configuration is incorre

  #8  
Mar 18th, 2008
>>Um, what exactly does compiling it as release change
I don't know exactly, but the debug version doubles the size of the executable because of all the stuff the compiler adds to make debugging easier, such as symbol names and line numbers and padding of data objects to make them bigger than you specified. The final release version of the program strips all that stuff out as well as optimizes code by changing some of it to make it run faster.

You have to tell the compiler the names of the DirectX *.lib files it is to use to link the program -- debug and release must be set up individually. When you set up the debug version you must have selected menu Project --> Properties --> Configuration Properties --> Linker --> Input then on the right side "Additional Dependencies" and listed the DirectX libraries there. You need to do the same thing for the release version. See the "Configuration" dropdown at the top of the left-hand pain.
Last edited by Ancient Dragon : Mar 18th, 2008 at 8:32 pm.
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
Reply With Quote  
Join Date: Jan 2008
Location: USA East Cost
Posts: 392
Reputation: CoolGamer48 is on a distinguished road 
Rep Power: 1
Solved Threads: 37
CoolGamer48's Avatar
CoolGamer48 CoolGamer48 is offline Offline
Posting Whiz

Re: This application has failed to start becuase the application configuration is inc

  #9  
Mar 18th, 2008
Allright, now it compiles, but I asked my friend to run it and now he gets this message:

applicatin failed to start because its side by side configuration is incorrect. please see the application event log for more detail

What does that mean?
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 972
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: This application has failed to start becuase the application configuration is incorre

  #10  
Mar 18th, 2008
Same reason as before -- your friend's computer does not have the required DLLs.
Last edited by Ancient Dragon : Mar 18th, 2008 at 11:05 pm.
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the C++ Forum

All times are GMT -4. The time now is 2:05 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC