Visual Studio
Visual Studio
An Integrated Windows
Program Development
Environment
Common
Language
Runtime
The Debugger
• Powerful source code debugger
• Integrated with all parts of Visual Studio
• Features
– breakpoints
– tracing through/over functions
– variable watch windows
• See Appendix C of Deitel text book
The Wizards
• AppWizard
– Windows code generator for Windows apps
– automatically creates working program
templates & skeleton code
• ClassWizard
– facilitates easy extension of AppWizard-
generated classes
– creation of new classes
– used to tailor AppWizard-generated MFC &
.NET skeletons
– Accessible in the Properties Window in .NET
Help
• Essential when developing Windows apps
• Hover over key words in edit window and a
one-line help message appears
• ‘Help’ Menu Item
– ‘Dynamic Help’ – context sensitive
• Click on text in edit window and corresponding
topic appears in help window
• Click on topic in help window to get help
– ‘Contents’: Select a topic
– ‘Search’: Enter a topic
– ‘Index’: Enter/choose a topic
MSDN Library (on Web)
• Go to: http://msdn.microsoft.com
– Search MSDN for desired topic
– Some examples:
• Windows API reference
• MFC reference
• Windows forms class library
Keyboard Shortcuts
• All Menu/Toolbar selections are available
from the keyboard using key combinations
• Can be faster
• More information in Online Help
– ‘Index’ | ‘Keyboard Shortcuts’ | ‘Predefined’
Solutions and Projects
• Solution
– A single application
– Can contain one or more projects
• In Managed applications, projects can be in different
languages
– Overall solution information stored in a .SLN file
– Open this when you want to work on a solution
• Project
– Basic component of an application
– Collection of files:
• Source, headers, resources, settings, configuration
information, many more
Program Configurations
• Debug
– appends debugging information
– produces more and larger files
• Release
– no debugging information
– optimized for size, performance, & efficiency
Setting the Configuration
• Click ‘Build’ on Main Menu
• Choose ‘Configuration Manager’
• Choose desired configuration (‘Debug’ or
‘Release’) in Configuration Manager’s
‘Active Solution Configuration Box’
• Default is ‘Debug’