C++ problem trying to use a certificate? Can't c - WeOnlyDo Discussion board

C++ problem trying to use a certificate? Can't c (General questions)

by timster, Wednesday, January 11, 2006, 00:19 (6891 days ago)

Hi,

I'm using WodFtpDLX (starting with the ConsoleApp sample), and I'm stuck trying to figure out how to create an ICertificate object, load a file cert into it, and attach it to a IwodFtpDLXComPtr object. I can't find any MSVC 6.0 C++ MFC/ATL sample code that does this, and the documentation is less than helpful.

When I try to put:
ICertificate *m_Certificate;
in my code, the compiler generates the following:
error C2259: 'ICertificate' : cannot instantiate abstract class due to following members: (blah blah blah)

In desperation I tried this:
hr = pFtpCom->Certificate.CreateInstance (IID_ICertificate, NULL);
but it fails with a Class not registered error, even though wodCertificate.DLL IS registered?

PLEASE HELP!

Thanks,
Tim


Complete thread: