Thank you!
I'm still pretty new to COM development, so I didn't appreciate this
nuance. See, I thought the conversion worked, because when I returned
the string, the ASP could output it just fine.
Anyway, that part seems to work now.
Again, thanks.
Mark Harvey wrote:
> Hi Tim,
>
> I think
Hi Tim,
I think the problem is that you are casting a BSTR to a char*, you need to
use a conversion routine, e.g. something like:
void somefunc(BSTR bstrText)
{
_bstr_t _bstrText(bstrText, false);
char* lpszText = (char*)_bstrText;
..
Cheers,
Mark
- Original Message -
From: "Tim Cole
keyString contains
-BEGIN RSA PRIVATE KEY-
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,2D1A4A3700D0F3ED
RAn7K9q2wwlz2vbwA9v+2I0RS/vxrwo4ldXGzWxlhGDk/yPmCZYonwo5J6WknkGa
4Th4bfSzXyOx1DJnxWDC81WQI9U59hoQZaNWQ/uvv2I691hYyV9hGe4j16nxdA6H
s/CUXXVjwBfXGBRS+tOtXk6v/Ze/n5Wp5CvUb+R210EWguSqo+zY
What's in keyString? The error message indicates that the banner
("-BEGIN PRIVATE KEY-") is missing.
Steven
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim Coleman
Sent: Thursday, 19 September 2002 11:49 PM
To: [EMAIL PROTECTED]
Subject: Cre