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

by Jasmine, (7097 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]

locked

Complete thread: