PRB: GetData Returns Outdated Data for OLE 1.0 Object

Last reviewed: May 17, 1995
Article ID: Q110716
The information in this article applies to:
  • Microsoft OLE Libraries for Windows and Win32s, version 2.01
  • Microsoft OLE Libraries, included with:

        - Microsoft Windows NT, versions 3.5 and 3.51
        - Microsoft Windows 95
    

SYMPTOMS

If an OLE 2.0 container application document contains an embedded OLE 1.0 object, and the container calls IDataObject::GetData() to retrieve data for that object, the data returned is out of date, and does not reflect the OLE 1.0 server's most recent changes to the object.

CAUSE

OLE 1.0 embedded object servers only update the cache when the user chooses the Update command from the File menu. OLE 1.0 objects do not update the cache for every change to the object. Therefore, an OLE 1.0 object's cache often contains outdated data.

RESOLUTION

The container can obtain the latest object data by calling IOleObject::Update(). This function ensures that any data or view caches maintained inside the object are up to date.

REFERENCES

For more information on known idiosyncrasies of embedding OLE 1.0 objects into OLE 2.0 containers, see "Working with OLE 1 Servers" in the OLE Software Development Kit (SDK) version 2.01 Programmer's Reference.


Additional reference words: 2.01 3.50 4.00
KBCategory: kbole kbprg kbprb
KBSubcategory: LeTwoArc


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