Beispiel #1
0
char *RSAKey::FmtKey() const
{
	int len = this->StrLen();
	char *p = new char[len];
	StrFmt( p );
	return p;
}
Beispiel #2
0
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 );
}
Beispiel #3
0
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 );
}