Skip to content

InstrPrintCommand

Sends the command for the current method to the device.

virtual HRESULT InstrPrintCommand();
virtual HRESULT InstrPrintCommand(SAFEARRAY* psaArg [, argument] ...);

psaArg

[in] SAFEARRAY argument interpreted by the format string.

argument

[in] Optional arguments interpreted by the format string.

Returns S_OK if successful, otherwise a failure HRESULT.

The following example demonstrates use of the InstrPrintCommand function.

CoAcme4321.cpp
HRESULT Acme4321::Configure(double Frequency, double Gain)
{
HRESULT hr = S_OK;
hr = InstrPrintCommand();
return hr;
}