Click or drag to resize

GetInstrCommand

Retrieves the command for the current method from the command buffer.

const CString& GetInstrCommand() const;
Return Value

Returns the command for the current method with all parameter replacement tags replaced by the corresponding formatted parameter value.

Remarks

The GetInstrCommand function can be used to retrieve from the command buffer the processed command for the currently executing method. Developers may wish to use the GetInstrCommand function to perform custom processing of the command after Nimbus has performed all of the specified parameter replacement tag operations.

Multiple calls to GetInstrCommand from within a single method execution always return the same command string. That is to say, the command buffer remains unaffected by custom processing that is performed on the string returned from this function.

Example

The following example demonstrates use of the GetInstrCommand function.

C++
// CoAcme4321.cpp
HRESULT Acme4321::Configure()
{
  HRESULT hr = S_OK;

  CString strCommand = GetInstrCommand();

  return hr;
}
See Also

Download a complete CHM version of this documentation here.