Re: C++ problem trying to use a certificate? Can (General questions)
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:
- C++ problem trying to use a certificate? Can't c - timster, 2006-01-11, 00:19
- Re: C++ problem trying to use a certificate? - timster, 2006-01-11, 00:58
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-11, 02:12
- Re: C++ problem trying to use a certificate? - timster, 2006-01-11, 18:42
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-11, 18:44
- Re: C++ problem trying to use a certificate? Can - timster, 2006-01-11, 19:14
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-11, 19:48
- Re: C++ problem trying to use a certificate? Can - timster, 2006-01-11, 20:58
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-11, 21:19
- Re: C++ problem trying to use a certificate? - timster, 2006-01-11, 22:37
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-11, 22:39
- Re: C++ problem trying to use a certificate? Can - timster, 2006-01-11, 23:47
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-11, 23:53
- Re: C++ problem trying to use a certificate? - timster, 2006-01-12, 00:33
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-12, 01:46
- Re: C++ problem trying to use a certificate? Can - timster, 2006-01-12, 19:59
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-12, 20:17
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-13, 00:37
- Re: C++ problem trying to use a certificate? Can - timster, 2006-01-13, 01:19
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-13, 01:22
- Re: C++ problem trying to use a certificate? Can - timster, 2006-01-13, 18:00
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-13, 20:12
- Re: C++ problem trying to use a certificate? Can - timster, 2006-01-13, 18:00
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-13, 01:22
- Re: C++ problem trying to use a certificate? Can - timster, 2006-01-13, 01:19
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-13, 00:37
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-12, 20:17
- Re: C++ problem trying to use a certificate? Can - timster, 2006-01-12, 19:59
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-12, 01:46
- Re: C++ problem trying to use a certificate? - timster, 2006-01-12, 00:33
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-11, 23:53
- Re: C++ problem trying to use a certificate? Can - timster, 2006-01-11, 23:47
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-11, 22:39
- Re: C++ problem trying to use a certificate? - timster, 2006-01-11, 22:37
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-11, 21:19
- Re: C++ problem trying to use a certificate? Can - timster, 2006-01-11, 20:58
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-11, 19:48
- Re: C++ problem trying to use a certificate? Can - timster, 2006-01-11, 19:14
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-11, 18:44
- Re: C++ problem trying to use a certificate? - timster, 2006-01-11, 18:42
- Re: C++ problem trying to use a certificate? Can - wodSupport, 2006-01-11, 02:12
- Re: C++ problem trying to use a certificate? - timster, 2006-01-11, 00:58