Programming with Visual Studio 2005.NET A short review of the process
2 Windows Programming Environment - MS Dev Studio
Visual Studio.NET
4 Windows Programming Start New Project Microsoft Visual Studio.Net Start -- Programs -- MS Visual Studio -- MS Visual Studio To create a new project: –From Start Page: Create -- Project –Identify storage location for new project –Provide Project name –OK
New Project Window
7 Windows Programming Add / Create files Project – Add Existing Item – C++ File Locate desired files. Repeat for all needed files For new files: Project -- Add New Item – C++ File Identify file.
10 Windows Programming Add Libraries Project -- Properties linker tab -- category = Input -- add library names to “Additional Dependencies” for sockets, add “wsock32.lib”
Add Libraries
To support Multi-threaded Programs: Select Project Program Properties Select C/C++ tab –Code Generation subtab Runtime Library item: –Default is “Single-threaded Debug (/MLd)” –Select “Multi-threaded Debug DLL (/MDd)”
16 Windows Programming Select Active Configuration Two compile configurations available –Release –Debug Build – select “Configuration Manager” Select either Debug or Release –Note that debug versions create large (megabyte) files.
Active / Debug Configuration
19 Windows Programming Build and Execute Project Build -- Build “project_name” Check message window for compile and link status. If no errors are indicated, execute program. Debug – “Start Debugging” or “Start Without Debugging”
Summary Visual Studio 2005 conceptually identical to earlier versions Some syntax (views) change a little.