IFTPFXP - class not registered

I have COM error - "class not registered", when I try create instance of IFTPFXP

IFTPFXPPtr pFxp;
try
{
HRESULT hr = pFxp.CreateInstance(__uuidof(IFTPFXP));
if (FAILED(hr))
{
nRet= SYNC_CANCEL;
_com_issue_error(hr);
}
}
catch (_com_error& ce)
{
nRet= SYNC_CANCEL;
AfxMessageBox(ce.ErrorMessage());
}

How to resolve this problem?

Regards,
Nikolai

Hello ..

You have to create an instance of a class not of an instance.

Try
CreateInstance(__uuidof(FTPFXP))

Regards,
SmartFTP


You have to create an instance of a class not of an instance.

Oops
Sorry, my fault

I meant "You have to create an instance of a class not of an instance of an interface". of course ;-)

;-)