Configure Visual Studio 2005/2008
for McDonald's Graphics Library


Requirements

Configure a Project to use win.lib

1. Put win.h and win.lib at some known location.

You can copy these into a project's directory and that makes configuration a few steps shorter.

However, if you have multiple projects using the graphics library, you might want to have just one copy of these files rather than duplicating them in each project. If so, choose some directory and put them there and remember the directory.

2. Configuration Settings in Visual Studio 2005/2008

Create your project, select the project in the solutions window and enter Alt-F7 to get to the Project's properties:

There are four settings you may have to make even if win.h and win.lib are in the project directory.

Configuration properties are shown in the folder like tree in the left pane. The corresponding possible values are set in the right pane.

  1. Left Pane: Configuration Properties > General

    Right Pane: Character Set
    Choose Value: Use Multi-Byte Character Set

  2. Left Pane: C/C++ > General

    Right Pane: Detect 64-bit Portability Issues
    Choose Value: No

  3. Left Pane: C/C++ > Preprocessor

    Right Pane: Preprocessor Definitions
    Type Value: _CRT_SECURE_NO_DEPRECATE

  4. Left Pane: C/C++ > Code Generation

    Right Pane: Runtime Library
    Choose Value: Multi-threaded (/MT)

Configuration Settings to find win.h and win.lib

You configure the project to find win.h and win.lib in either one of the followin ways:

A. Put a copy of win.h and win.lib in the project directory and add win.h to the Header Files and win.lib to the Resource Files "folders" for the project.

  1. Left Pane: C/C++ > General

    Right Pane: Additional Include Directories
    Type Value: The path to the directory containing win.h

  2. Left Pane: Linker > Input

    Right Pane: Additional Dependencies
    Type Value: The path to the file win.lib

Images for the Configuration Steps

1. Use Multi-Byte Character Set

Multi-Byte Character Set

2. Detect 64-bit Portability Issues

No detect 64bit portability
      issues

3. _CRT_SECURE_NO_DEPRECATE

_CRT_SECURE_NO_DEPRECATE

4. Multi-threaded (/MT)

Multi-threaded (/MT)

5. Additional Include Directories

Additional Include
      Directories

6. Additional Dependencies (library location)

(Replace the path ../v2005/winlib/win.lib with the actual path where you saved the win.lib file.)

Path to the win.lib
      file