The information in this article applies to:
SUMMARYThis article lists the OLE API and interface calls to which the Visual Basic CreateObject and GetObject calls map. Each listing shows how to obtain the IDispatch of an OLE Automation object. You can then invoke a property or method of the OLE Automation object by using IDispatch::GetIDsOfNames and IDispatch::Invoke. MORE INFORMATIONThe code listed below does not do any error checking. When you implement it, you should add the code to do necessary error checking. See the OLE SDK documentation for more information about each function or interface. Each code listing shows how to obtain the pointer to IDispatch of an Automation object in the pdisp variable. CreateObject(progID)This creates a new automation object and returns a pointer to the IDispatch of that object.
GetObject(filename, progID)GetObject has three different semantics depending on the number of parameters passed. An automation object must implement IPersistFile to support GetObject(filename, progID).
GetObject(filename,)GetObject has three different semantics depending on the number of parameters passed. An automation object must implement IPersistFile to support GetObject(filename,).
GetObject(, progID)GetObject has three different semantics depending on the number of parameters passed. An automation object must call RegisterActiveObject to support GetObject(, progID).
Additional query words:
Keywords : kbcode kbnetwork kbAPI kbSDKPlatform kbVBp300 kbWin32s kbWinOS kbGrpCom kbDSupport kbOLE202 kbGrpNet |
Last Reviewed: October 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |