PRB: Unable to Compile 32-bit CDK Samples

ID: Q138753


The information in this article applies to:
  • Microsoft Visual C++, 32-bit Editions, version 2.0
  • Microsoft OLE Control Developer's Kit (CDK)


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 : winnt:2.0; :
Platform : winnt
Issue type : kbprb


Last Reviewed: January 31, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.