Q171561: Inside COM: CD-ROM: Problems Compiling Tangram Source Code
Article: Q171561
Product(s): Microsoft Press
Version(s):
Operating System(s):
Keyword(s): kbother
Last Modified: 16-JAN-2001
-------------------------------------------------------------------------------
The information in this article applies to:
- MSPRESS Inside Com ISBN 1-57231-349-8
-------------------------------------------------------------------------------
SUMMARY
=======
Errors may occur if you attempt to compile the source code for the Tangram
application from the CD-ROM packaged with the Microsoft Press book "Inside COM."
MORE INFORMATION
================
The following corrections should be made before compiling the source code for
the Tangram application:
- Add a subdirectory called \Proxy to the \tangram\source\model\ directory.
This directory should be left empty.
- In file \tangram\source\glwlrd\cgl-pal.cpp, line 108:
Change: TRACE0
To: "TRACE" (without the quotation marks)
TRACE0 causes the compiler to use a Unicode-aware macro call "_T", but the
file doesn't include the necessary header file for the macro.
- A release build of the final Tangram executable will fail because it attempts
to use precompiled headers for files that aren't set up to use them.
To avoid this error, disable precompiled headers for the entire Release build
of the Tangram executable. To do this in Microsoft Visual C++, follow these
steps:
1. On the Developer Studio's Project menu, click Settings.
2. In the dialog box that appears, click Tangram in the left pane and select
Win32 Release from the Settings For list above it.
3. Click the C/C++ tab on the right, and select Precompiled Headers from the
Category list.
4. Click to select the button for Not Using Precompiled Headers.
Additional query words: mspress ms_press press bookbug com automation
======================================================================
Keywords : kbother
Technology : kbMSPressSearch
Version : :
=============================================================================
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.