IDebugFunctionObject::CreateObjectNoConstructorIDebugFunctionObject::CreateObjectNoConstructor

建立沒有任何函式的物件。Creates an object with no constructor.

語法Syntax

HRESULT CreateObjectNoConstructor( 
   IDebugField*   pClassObject,
   IDebugObject** ppObject
);
int CreateObjectNoConstructor(
   IDebugField      pClassField,
   out IDebugObject ppObject
);

參數Parameters

pClassObject
IDebugField 物件,代表要建立之物件的類型。[in] An IDebugField object representing the type of the object to be created.

ppObject
擴展傳回代表新建立之物件的 IDebugObject[out] Returns an IDebugObject representing the newly created object.

傳回值Return Value

如果成功,則傳回 S_OK;否則,會傳回錯誤碼。If successful, returns S_OK; otherwise, returns an error code.

備註Remarks

呼叫這個方法來建立物件,該物件代表結構或複雜型別的實例, (不需要函式) ,也就是 IDebugFunctionObject 介面所代表的函式的參數。Call this method to create an object that represents an instance of a structure or complex type (that does not require a constructor) that is a parameter to the function which is represented by the IDebugFunctionObject interface.

如果物件參數需要函式,請呼叫 CreateObject 方法。If the object parameter requires a constructor, call the CreateObject method.

另請參閱See also