PRB: Unable to Compile 32-bit CDK Samples

Last reviewed: July 25, 1997
Article ID: Q138753
The information in this article applies to:
  • Microsoft Visual C++, 32-bit Edition, version 2.0
  • Microsoft OLE Control Developer's Kit (CDK), version 1.0

SYMPTOMS

Attempting to build the CDK32 samples under Windows 95 from within the Visual C++ 2.0 IDE may cause the following error messages to be generated:

   Command line too long (tool does not support response files).

   Error: could not generate command line for the Win32 resource
   compiler tool.

The messages appear in the output window for Rc.exe.

NOTE: This behavior does not occur under Windows NT or if using Visual C++ versions 2.1 or 2.2 with Windows 95.

CAUSE

The macro "$(OUTDIR)" is listed under additional include directories for the resource compiler (Rc.exe). The expansion of this macro while building the Rc.exe command line exceeds the capacity for the length of the Rc.exe command line.

RESOLUTION

To avoid the problem:

  1. Open the CDK32 project you want to build.

  2. On the Project menu, click Settings, and then click Resource.

  3. In the Additional Include Directories text box, erase the "$(OUTDIR)" text, and click OK.

  4. Rebuild the project.

STATUS

This behavior is by design.

REFERENCES

For information on the resource settings dialog box, please see the Visual C++ Help file or the User's Guide.


Additional query words: vc
Keywords : CodeSam
Version : 2.0
Platform : NT WINDOWS
Issue type : kbprb
Solution Type : kbfix


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: July 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.