1. Home
  2. Computing & Technology
  3. C / C++ / C#

How to Compile Programs with Microsoft Visual C++ 6

By , About.com Guide

4 of 8

Debug or Release Projects?

Set Configuration Dialog
When developing a program, it's obviously important to be able to debug it. However for release you want to provide as small an executable as possible, unbloated by debug code. Here's how to do that.

Click "Build" on the main Menu, then "Set Active Configuration" on the drop-down menu. This opens a dialog that shows you all possible build configurations. Just switch to the "Release" configuration (that's the selected configuration in the picture), press Ok and then do another build. This creates a release folder containing the release executable. For a simple "Hello World" Application, the debug executable is 169 KB in size. The release exe is 40KB.

You aren't just limited to these two configurations either. Click "Build" on the main menu then "Configurations". This is where you add extra configurations. For example, a project for one customer may include additional functionality, perhaps implemented in an extra dll. This is where you create that configuration. You can then customize it in the Settings dialog. (Click "Project" on the Main menu then "Settings" on the drop-down).

On the Next Page : Learn about Settings on the next page.

Explore C / C++ / C#
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. C
  5. C Tutorials
  6. Debug or Release Projects?

©2009 About.com, a part of The New York Times Company.

All rights reserved.