The GetName method returns the name of the invoked command.
_bstr_t bstrCommandName = spIAppIntCmd->GetName();
... // 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;
...