char *RSAKey::FmtKey() const { int len = this->StrLen(); char *p = new char[len]; StrFmt( p ); return p; }
TString GetCOMErrMsg( const TString& contextMessage, HRESULT lastError ) { // TODO: use FormatMessage to get the appropriate message from the return StrFmt( _T( "%s: HRESULT = 0x%08X" ), contextMessage.c_str(), lastError ); }
TString GetWinErrMsg( const TString& contextMessage, DWORD lastError ) { // TODO: use FormatMessage to get the appropriate message from the return StrFmt( _T( "%s: GetLastError = %lu" ), contextMessage.c_str(), lastError ); }