943,692 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 33204
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Jul 29th, 2007
-1

how to create a exe file in visual C++

Expand Post »
anyone please guide me to create a exe program in visual C++ 2005.

Thank you
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shorty001 is offline Offline
4 posts
since Jul 2007
Jul 29th, 2007
0

Re: how to create a exe file in visual C++

Maybe these short tutorials will help
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,950 posts
since Aug 2005
Jul 30th, 2007
0

Re: how to create a exe file in visual C++

I already checked that one, it only guide us how to make a program ( how to begin to write the code into the editor), not a exe program. I need a guide to make a real exe file.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shorty001 is offline Offline
4 posts
since Jul 2007
Jul 30th, 2007
0

Re: how to create a exe file in visual C++

To be able to create an Exe file in Visual C++ (I hope by your context you are using 6.0) you need to have fairly good knowledge of C++. next an Exe application can be of two types Console based / Graphical User Interface. For console based you can use Win32 Console APllication (as Ancient Dragon has guided you to the tutorial) and code in the ToDo areas for what operation you want to do. Next compile and build the program. This way u can create a console based exe.

For Graphical based exe you have to learn a bit more of MFC before proceeding.

Please revert back to us in case of more clarification.
Reputation Points: 64
Solved Threads: 7
Junior Poster
shouvik.d is offline Offline
198 posts
since Jan 2007
Jul 30th, 2007
0

Re: how to create a exe file in visual C++

HAHAHAHA.

What's so "fairly good understanding" about being able to write
C++ Syntax (Toggle Plain Text)
  1. int main(char* args, int argv)
  2. {
  3. return 0;
  4. }

and pressing a button or key?
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Jul 30th, 2007
0

Re: how to create a exe file in visual C++

Quote ...
I need a guide to make a real exe file.
Type all of your code into the visual C++ editor and then press ctrl+shift+b. That builds your project and creates an exe file in the Debug or Release folders of the project folder. You can also do it the clicky way from the Build menu in visual C++. You can also use F5 to build and run in debug mode immediately, or ctrl+F5 to build and run in production mode immediately.

The tutorials that you said weren't helpful describe how to build projects here. But that's probably too much information if all you want is to build simple programs.
Reputation Points: 180
Solved Threads: 34
Posting Whiz
Hamrick is offline Offline
322 posts
since Jun 2007
Jul 30th, 2007
0

Re: how to create a exe file in visual C++

Click to Expand / Collapse  Quote originally posted by shouvik.d ...
To be able to create an Exe file in Visual C++ (I hope by your context you are using 6.0) you need to have fairly good knowledge of C++. .
Nope -- only need a very basic knowledge of c++ to write console programs with the compiler. But it does take some time for newbes to learn how to use the IDE. How to do that depends on which version of VC++ you are using -- version 6.0 is a lot different than 2005.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,950 posts
since Aug 2005
Jul 30th, 2007
0

Re: how to create a exe file in visual C++

In general, the steps to getting MSVC++ 2005 to work should be something along the lines of

- Create a new Solution, using a Win32 Console Project

- Right-Click on the project's name in the solution explorer, choose properties.

- In the Configuration Properties Window, look for the option to disable precompiled headers (Under the C/C++ Configuration properties)

- Get rid of stdafx.h and all that rubbish

- use the simplest possible program to test whether you've set it up correctly (you can tell by whether the program compiles) this one will do
CPP Syntax (Toggle Plain Text)
  1. int main()
  2. {
  3. }
- Hold [CTRL] and press [F5] to compile & run. (Console Window won't auto-close - this is the 'compile without debugging' mode)
- or, [F7] to build it without running

- if you need the .exe file, look in the project's folder on your computer, in Windows Explorer. The .exe file will be named after the solution.
Last edited by Bench; Jul 30th, 2007 at 9:01 pm.
Reputation Points: 307
Solved Threads: 62
Posting Pro
Bench is offline Offline
565 posts
since Feb 2006
Jul 31st, 2007
0

Re: how to create a exe file in visual C++

6.0 is a lot different than 2005.
That is what takes developers a lot of time to port programms from one version to another. So atleast a fair amount of knowledge would be necessary in order to know how and what is working inside a program.

Tell me if i'm wrong.
Reputation Points: 64
Solved Threads: 7
Junior Poster
shouvik.d is offline Offline
198 posts
since Jan 2007
Jul 31st, 2007
0

Re: how to create a exe file in visual C++

most people would choose to start from scratch when starting development in VC2005 if their previous version was VC6.

Anything developed that long ago that VC6 was current when development was complete will be in dire need for such a major overhaul that complete replacement is a better option.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

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: MUD help?
Next Thread in C++ Forum Timeline: Help with C++





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


Follow us on Twitter


© 2011 DaniWeb® LLC