PRB: OleCreate Problems with Borland Compiler

Last reviewed: April 21, 1995
Article ID: Q104461
The information in this article applies to:
  • Microsoft OLE Libraries for Windows and Win32s, version 2.0

SYMPTOMS

Using the OLE 2.0 application programming interface (API), OleCreate can cause unexpected behavior and return unexpected error codes when used in an application compiled with the Borland C++ compiler.

CAUSE

At link time, the Borland file IMPORT.LIB is included before the OLE 2.0 libraries. In the IMPORT.LIB file there is a reference to the OLE 1.0 OleCreate function.

RESOLUTION

Include OLE2.LIB before IMPORT.LIB when specifying the libraries for linking.


Additional reference words: 2.00 third party third-party 3rd
KBCategory: kbole kbprg kbprb
KBSubcategory: LeTwoApp


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: April 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.