IAppIntCmd::GetName

The GetName method returns the name of the invoked command.

_bstr_t bstrCommandName = spIAppIntCmd->GetName();
Parameters
None.
Results
Returns a _bstr_t containing the name of the invoked command.
Sample
The following is a fragment from the complete example for the standard IAppIntCmd interface.
   ...
      // Instantiate and Initialize the custom command component here
      // Execute the command and capture the response component
      std::cout << "Executing the command..." << std::endl;
      IAppIntCmdPtr spIAppIntCmd(spICommandNameCmd);

      _bstr_t bstrCommandName = spIAppIntCmd->GetName();
      std::cout << "CommandName=" << ( bstrCommandName.length() ? (LPCSTR) bstrCommandName : _T( "" ) ) << std::endl;
      _bstr_t bstrCommandDescription = spIAppIntCmd->GetDescription();
      std::cout << "CommandDescription=" << ( bstrCommandDescription.length() ? (LPCSTR) bstrCommandDescription : _T( "" ) ) << std::endl;
   ...