IDebugFunctionObject:: CreateObject
Crea un oggetto utilizzando il costruttore.
HRESULT CreateObject(
IDebugFunctionObject* pConstructor,
DWORD dwArgs,
IDebugObject* pArgs[],
IDebugObject** ppObject
);
int CreateObject(
IDebugFunctionObject pConstructor,
uint dwArgs,
IDebugObject[] pArgs,
out IDebugObject ppObject
);
Parametri
pConstructor
[in] IDebugFunctionObject Un oggetto che rappresenta il costruttore dell'oggetto da creare.dwArgs
[in] Il numero di parametri nella matrice dipArg . Rappresenta il numero dei parametri passati al costruttore.pArg
[in] Una matrice IDebugObject di oggetti che rappresentano i parametri passati al costruttore.ppObject
[out] Restituisce IDebugObject che rappresenta l'oggetto appena creato.
Valore restituito
Se l'operazione riesce, restituisce S_OK, in caso contrario, restituisce un codice di errore.
Note
Chiamare questo metodo per creare un oggetto che rappresenta un'istanza di una classe (o di altro tipo complesso che richiede un costruttore) che sia un parametro alla funzione che è rappresentata IDebugFunctionObject dall'interfaccia.
Se il parametro dell'oggetto non richiede un costruttore, chiamare IDebugFunctionObject:: CreateObjectNoConstructor il metodo.