PRB: Error Inserting or Editing a Linked or Embedded OLE Objec (89611)



The information in this article applies to:

  • Microsoft OLE 1.0

This article was previously published under Q89611

SYMPTOMS

An OLE client application receives the error codes OLE_ERROR_COMM or OLE_ERROR_POKENATIVE when trying to insert or edit a linked or embedded OLE object.

CAUSE

The server application has yielded before calling the OleRegisterServer() or OleRegisterServerDoc() functions.

RESOLUTION

Due to the synchronous nature of DDE messages and the fact that OLE 1.0 is implemented with DDE, an OLE server application should not yield before calling the OleRegisterServer() function. Additionally, if the server command line contains the /Embedding switch, the function OleRegisterServerDoc() should also be called before yielding.

NOTE: Yielding does not necessarily require calling GetMessage() or PeekMessage() -- any Windows function which yields before returning will also cause the problem mentioned above, like MessageBox() or DialogBox().

Modification Type:MajorLast Reviewed:2/19/2002
Keywords:KB89611