INFO: COMMON.RES Provides Common Bitmaps, Cursors, and Icons

Last reviewed: October 7, 1997
Article ID: Q99162

The information in this article applies to:
  • The App Studio, included with: - Microsoft Visual C++ for Windows, versions 1.0, 1.5, 1.51, 1.52 - Microsoft Visual C++, 32-bit Edition, versions 1.0, 2.0, 2.1, 4.0, 5.0

SUMMARY

All versions of Microsoft Visual C++ include a COMMON.RES file. This file contains many common bitmaps, cursors, and icons that may be used "as is" with applications developed in Visual C++. The following table lists the default location of this file, be it on the installation drive or the distribution CD, for each version Visual C++:

    Visual C++ version  |         Directory
  --------------------------------------------------------------
          1.0           |  \MSVC\MFC\SAMPLES\APSTUDIO
          1.5x          |  \MSVC15\MFC\SAMPLES\APSTUDIO
          2.x           |  \MSVC20\SAMPLES\MFC\CLIPART
          4.0           |  \MSDEV\SAMPLES\MFC\CLIPART
          5.0           |  \DevStudio\Vc\Samples\mfc\general\clipart

To view the various resources, simply open the COMMON.RES file in App Studio, or Developer Studio. These resources may be copied directly into an application's resource file. Please refer to Technical Note 23, Standard MFC Resources, in the MFC Tech Notes help file for more information about using COMMON.RES.

In addition, Visual C++, 32-bit Edition, versions 2.0 and above include a COMMON.RC file and several other icons, cursors and bitmaps for general use. By default, these can be found in the same directory as the version's corresponding COMMON.RES file. The Visual C++ Books Online document the use of these resources in the "CLIPART: Common Resources" article of the "General MFC Samples." For more information, search the Books Online for "CLIPART."

With App Studio and Developer Studio, you can view resources in many types of files including dynamic-link libraries (DLLs), executable (.EXE) files, compiled resource (.RES) files, and .BMP, .CUR, .DIB, .ICO, and .RC files. You can copy these resources into your own application and use them as appropriate.

Keywords          : AppStudioIss kbfasttip
Version           : WIN3X:1.0,1.5,1.51,1.52;WINNT:1.0,2.0,2.1,4.0,5.0;
Platform          : NT WINDOWS
Issue type        : kbinfo


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.