Re: C++ problem trying to use a certificate? Can - WeOnlyDo Discussion board

Re: C++ problem trying to use a certificate? Can (General questions)

by wodSupport, Wednesday, January 11, 2006, 21:19 (6890 days ago) @ timster

You have to catch the error. Try something like this:
[code] try
{
_bstr_t fn = Client.cer ;
pCert->Load(fn);
} catch (_com_error &err)
{
short s = (short)err.Error();
printf ( Unable to load certificate.\nErr d\r\n , s);
}
[/code]


Complete thread: