Jump to content


Photo

IFTPFXP - class not registered


  • Please log in to reply
3 replies to this topic

#1 Nikeware

Nikeware
  • Members
  • 27 posts
  • Interests:
    Diff Commander - folders compare and merge tool<br />Visual Comparer - text files compare and merge tool

Posted 23 June 2006 - 02:25 PM

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

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

#2 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 23 June 2006 - 03:51 PM

Hello ..

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

Try
CreateInstance(__uuidof(FTPFXP))

Regards,
SmartFTP

#3 Nikeware

Nikeware
  • Members
  • 27 posts
  • Interests:
    Diff Commander - folders compare and merge tool<br />Visual Comparer - text files compare and merge tool

Posted 23 June 2006 - 07:28 PM

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


Oops :rolleyes:
Sorry, my fault :unsure:

#4 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 25 June 2006 - 12:02 AM

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

;-)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users