Q100407: PRB: MASM Code Using CMACROS.INC Does Not Build Correctly
Article: Q100407
Product(s): Microsoft Windows Software Development Kit
Version(s): WINDOWS:3.1
Operating System(s):
Keyword(s): kb16bitonly
Last Modified: 05-NOV-1999
-------------------------------------------------------------------------------
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) 3.1
-------------------------------------------------------------------------------
SYMPTOMS
========
Attempting to build a Windows-based application with MASM code using a
CMACROS.INC header file causes errors to be generated by the macro assembler.
CAUSE
=====
The CMACROS.INC file is incompatible with the version of MASM being used.
RESOLUTION
==========
When using MASM version 6.x, use the version of CMACROS.INC that comes with
MASM. When using MASM version 5.1, use the version of CMACROS.INC that comes
with the development product you are using, such as the Windows Software
Development Kit (SDK) or the Windows Device Driver Kit (DDK).
MORE INFORMATION
================
MASM has changed considerably from version 5.1 to versions 6.x; the changes to
the assembler include the removal of the second assembly pass and additions or
modifications to the behavior of assembler directives. A complete list of the
differences can be found in the product documentation of MASM versions 6.0 and
later. Because of these changes, versions of CMACROS.INC compatible with MASM
5.1 are not compatible with MASM 6.x; likewise, versions of CMACROS.INC
compatible with MASM 6.x are not compatible with MASM 5.1.
Most of Microsoft's development products include a version of CMACROS.INC that is
compatible with MASM 5.1. Use this version of CMACROS.INC with MASM 5.1. If MASM
version 6.0 or later is being used, use the CMACROS.INC that comes with it
instead of the one that comes with the development product.
Additional query words: 3.10 no32bit masm
======================================================================
Keywords : kb16bitonly
Technology : kbAudDeveloper kbWin3xSearch kbSDKSearch kbWinSDKSearch kbWinSDK310
Version : WINDOWS:3.1
=============================================================================
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.
Copyright Microsoft Corporation 1986-2002.