PRB: Assertion in Dlgprop.cpp Line 499

Last reviewed: December 1, 1995
Article ID: Q140351
The information in this article applies to:
  • Microsoft Visual C++, Macintosh Cross-Development, version 2.0

SYMPTOMS

Displaying a property sheet within a project for a Macintosh target results in the appearance of this assertion message:

   xxxx: File dlgprop.cpp, line 499

This may start with line 497 instead (as in the PROPDLG sample), but it will be followed by more assertions (501, 503, and more in various locations).

CAUSE

As there was no update to the Macintosh cross-compiler in version 2.1, building a Macintosh application still requires the MFC header files from version 2.0. One of these files includes the Afxres.rc file, which contains some resources, such as some scroll bitmaps, which are not found in Afxres.rc file from version 2.1.

RESOLUTION

Run the provided Setupmfc.exe program, and add a path for the MFC 3.0 include directory to the INCLUDE environment variable in the development environment. More details follow.

STATUS

This behavior is by design.

MORE INFORMATION

Visual C++ 2.1 Setup programs install a program called Setupmfc.exe in the Msvc20\Bin directory and install an icon for it in the Microsoft Visual C++ 2.0 program group. The icon's label is "MFC 3.0 Source Setup." To see the icon, you need to have the Macintosh add-on installed before you install Visual C++ 2.1.

  1. Use Setupmfc.exe to reinstall MFC 3.0 source code. Be sure to use the Visual C++ 2.0 compact disc when the program asks for the MFC 3.0 source directory. Using the Visual C++ 2.1 compact disc will not work.

  2. Open the Visual C++ development environment. On the Tools menu, click Tools, and then click the Directories tab. Under Platform, click Macintosh, and under Show Directories for, click Include files. Remove the existing header file directory for MFC 3.1. Click the Add button to add a path for the MFC 3.0 include directory. For example:

    c:\msvc20\mfc30\include


Additional reference words: 2.10 2.1 2.00
KBCategory: kbsetup kbtshoot kbprb
KBSubcategory: vcMacSetup


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: December 1, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.