Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have written a trivia game using visual studio 2010.

it works so id like to be able to upload it and possibly have it available for download by anyone who wants to play it.

Well, I asked earlier on the site and i was told to compile it and there would be an exe file in the bin folder of it.

Well i found the a bin folder (not sure if its the right bin folder, idk, im somewhat new to programming)

First, compiling is just building/running? correct? if not how do i compile in VS 2010

secondly, if compiling is running/building, where is the correct bin folder and why dont i see the exe file.

unless it gets named something else?

Like the name of my proect and my source code is "Ultimate Trivia"

would it be called ultimate_trivia.exe or something of the sort?

any help would be greatly appreciated.
Posted

Yes, compiling is just like build/run (it compiles it to run it). In your bin directory you probably have 2 folders, one named debug and the other release. Your executable should be in the debug directory unless you've changed your configuration to release, then it would be there.

Just search for a .exe file in your code directory, it will probably be named "Ultimate Trivia.exe".

Does the program run when you hit the build/run button? If it doesn't, then it won't create an exe file, but if it does run then the file is created.
 
Share this answer
 
The structure of your solution folder should be:
Ultimate Trivia
    Debug
    Release
    Ultimate Trivia
    ... various control files

When you build the project or solution, using one of the Build ... buttons, the executable will be placed in either the Debug or Release directories, depending on which build type you have selected. It is generally the rule that the debug version is created just for testing, and the release version is the one delivered to customers.
 
Share this answer
 
On successful compilation Visual Studio shows (in the output window) the complete path of the built executable.

In any case you have control on it: choose Project -> Properties menu item then select Configuration Properties -> Linker -> General. In the very first line you may set the output (executable) path.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900