Debugging OLE 2.0 Applications Under Win32s

Last reviewed: February 9, 1996
Article ID: Q123812
The information in this article applies to:
  • Microsoft Win32s version 1.2

SUMMARY

The following are available to help you debug your OLE 2.0 applications under Win32s:

  • Debug versions of the OLE DLLs, included with Win32s. (See the Win32s Programmer's Reference for more information on the debug DLLs.)
  • Failure/trace messages.
  • The OLE SDK for Win32s, version 1.2, included on the Microsoft Developer Network (MSDN) CD.

For information on a utility that will convert OLE error codes into error message, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q122957
   TITLE     : SAMPLE: DECODE32: OLE Error Code Decoder Tool

MORE INFORMATION

The debug version of OLE can send diagnostic information to the debug terminal. To enable this feature, include the following lines in the SYSTEM.INI:

   [Win32sDbg]
   ole20str=xxxxx
   ole20str16=yyy

Use ole20str for 32-bit OLE and ole20str16 for 16-bit OLE. Set them to a combination of the following letters (case sensitive):

   f - Failure message, kind of asserts.
   v - Verbose. General purpose messages.
   1 - Trace special translation activity for 32/16 interoperability.
   i - Trace initialization of OLE.
   t - Trace termination and cleanup of OLE.

The following tools are contained in the OLE SDK for Win32s, version 1.2:
  • DFVIEW - Show the content of storage files.
  • LRPCSPY - Monitor LRPC messages sent by 16-bit OLE applications (does not require Win32s).
  • RPCSPY32 - Monitor LRPC messages from both 16-bit and 32-bit OLE applications.
  • DOBJVIEW and DOBJVW32 - View objects placed on the clipboard as well as objects transferred by drag and drop.
  • IROTVIEW and IROTVW32 - Display the contents of the OLE running object table (ROT).
  • OLE2VIEW and OLE2VW32 - Identify objects, interfaces, inproc and local servers, registration database entries, and so on.


Additional reference words: 1.20
KBCategory: kbole kbprg
KBSubcategory: W32s


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: February 9, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.