programming with visual studio.net a short review of the process

17
Programming with Visual Studio .NET A short review of the process

Upload: rosamond-jenkins

Post on 04-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Programming with Visual Studio.NET A short review of the process

Programming with Visual Studio .NET

A short review of the process

Page 2: Programming with Visual Studio.NET A short review of the process

2

Windows Programming Environment - MS Dev Studio

Page 3: Programming with Visual Studio.NET A short review of the process

Visual Studio .NET

Page 4: Programming with Visual Studio.NET A short review of the process

4

Windows ProgrammingStart New Project

• Microsoft Visual Studio .Net

• Start -- Programs -- MS Visual Studio -- MS Visual Studio

• To create a new project:– New Projects button -- Win32 Console Application– Identify storage location for new project– Provide Project name– OK

Page 5: Programming with Visual Studio.NET A short review of the process
Page 6: Programming with Visual Studio.NET A short review of the process
Page 7: Programming with Visual Studio.NET A short review of the process

7

Windows ProgrammingAdd / 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

• Select file.

Page 8: Programming with Visual Studio.NET A short review of the process
Page 9: Programming with Visual Studio.NET A short review of the process

9

Windows ProgrammingAdd Libraries

• Project -- Properties

• linker tab -- category = Input -- add library names to “Additional Dependencies”

• for sockets, add “wsock32.lib”

Page 10: Programming with Visual Studio.NET A short review of the process
Page 11: Programming with Visual Studio.NET A short review of the process

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)”

Page 12: Programming with Visual Studio.NET A short review of the process
Page 13: Programming with Visual Studio.NET A short review of the process

13

Windows ProgrammingSelect 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.

Page 14: Programming with Visual Studio.NET A short review of the process
Page 15: Programming with Visual Studio.NET A short review of the process

15

Windows ProgrammingBuild and Execute Project

• Build -- Build “project_name”

• Check message window for compile and link status.

• If no errors are indicated, execute program.

• Debug – “Start” or “Start Without Debugging”

Page 16: Programming with Visual Studio.NET A short review of the process
Page 17: Programming with Visual Studio.NET A short review of the process