GetInstanceName
Gets the physical name of the repeated capability instance.
Syntax
Section titled “Syntax”const CString& GetInstanceName() const;Return value
Section titled “Return value”Returns the physical name of the repeated capability instance.
Example
Section titled “Example”The following example demonstrates use of the GetInstanceName function.
HRESULT Acme4321::Configure(double dOffset){ HRESULT hr = S_OK;
// Format the command using the repeated capability physical name // "CH1", "CH2", "CH3", ... hr = io.Printf(_T("%s:OFFS %.15g"), LPCTSTR(GetInstanceName()), dOffset);
return hr;}