UCOMITypeInfo.CreateInstance(Object, Guid, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of a type that describes a component class (coclass).
public:
void CreateInstance(System::Object ^ pUnkOuter, Guid % riid, [Runtime::InteropServices::Out] System::Object ^ % ppvObj);
public void CreateInstance (object pUnkOuter, ref Guid riid, out object ppvObj);
abstract member CreateInstance : obj * Guid * obj -> unit
Public Sub CreateInstance (pUnkOuter As Object, ByRef riid As Guid, ByRef ppvObj As Object)
Parameters
- pUnkOuter
- Object
Object which acts as the controlling IUnknown
.
- riid
- Guid
The IID of the interface that the caller will use to communicate with the resulting object.
- ppvObj
- Object
On successful return, a reference to the created object.
Remarks
For additional information about ITypeInfo::CreateInstance
, see the MSDN Library.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.