programming with visual c++ a short review of the process

14
Programming with Visual C++ A short review of the process

Upload: cameron-mckenzie

Post on 03-Jan-2016

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Programming with Visual C++ A short review of the process

Programming with Visual C++

A short review of the process

Page 2: Programming with Visual C++ A short review of the process

2

Windows Programming Environment - MS Dev Studio

Start 5:45 PM

File Edit View Insert Project Build Tools Window Help

toolbars...

Message Window

File Window

ViewWindow

Page 3: Programming with Visual C++ A short review of the process
Page 4: Programming with Visual C++ A short review of the process

4

Windows ProgrammingStart New Project

• Microsoft Visual C++ 5.0

• Start -- Programs -- MS VC++ -- MS VC++

• To create a new project:– file -- new -- projects -- Win32 Console

Application– Identify storage location for new project– Provide Project name– OK

Page 5: Programming with Visual C++ A short review of the process
Page 6: Programming with Visual C++ A short review of the process
Page 7: Programming with Visual C++ A short review of the process

7

Windows ProgrammingAdd / Create files

• Project -- Add to Project -- Files

• Locate desired files.

• Repeat for all needed files

• For new files:

• Project -- Add to Project -- New

• Select file type.

Page 8: Programming with Visual C++ A short review of the process
Page 9: Programming with Visual C++ A short review of the process

9

Windows ProgrammingAdd Libraries

• Project -- Settings

• link tab -- category = General -- add library names to “Object/library modules”

• for sockets, add “wsock32.lib”

Page 10: Programming with Visual C++ A short review of the process
Page 11: Programming with Visual C++ A short review of the process

11

Windows ProgrammingSelect Active Configuration

• Two compile configurations available– Release– Debug

• Build -- Set Active Configuration

• Select either Debug or Release– Note that debug versions create large

(megabyte) files.

Page 12: Programming with Visual C++ A short review of the process
Page 13: Programming with Visual C++ A short review of the process

13

Windows ProgrammingBuild and Execute Project

• Build -- Build “project_name”

• Check message window for compile and link status.

• If no errors are indicated, execute program.

• Build -- Execute “project name”

Page 14: Programming with Visual C++ A short review of the process