Link to home
Start Free TrialLog in
Avatar of bilgehanyildirim
bilgehanyildirim

asked on

"No such interface supported."

He there,
I have a form where I use DHTMEdit to compose html emails. Here is the command which creates the form

procedure TfrmMain.htmltextContactDetailsAnchorClick(Sender: TObject; Anchor: String);
begin
  frmEmailToTheCustomer := TfrmEmailToTheCustomer.Create(self);
  frmEmailToTheCustomer.ShowModal;
  frmEmailToTheCustomer.Free;
end;

When I programmed this at home it worked without any problem. But I tried it at the office this morning and it gave "No such interface supported.".

Can anyone advice?
Avatar of kretzschmar
kretzschmar
Flag of Germany image

it seems there are one/some automation servers not installed/registered at your target-machine
Avatar of bilgehanyildirim
bilgehanyildirim

ASKER

how can I solve this?
well, i'm not an expert for such automation servers,
i guess an activeX, maybe the DHTMEdit is missed.

best you ask the developer of the component,
which conditions for the use must be present

sorry, i'm out of help at this point,
maybe some other expert can tell more

meikl ;-)
ASKER CERTIFIED SOLUTION
Avatar of Mike Littlewood
Mike Littlewood
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think the object I am trying to call is DHTMLEdit activex. I am not sure :)
Well basically the error message means you are calling the wrong procedure or function to do the job you want.
Can you look inside this object? is it a delphi source file you have access to?
actually it is an ActiveX which comes with Windows. may be the version I use at home is different then the one I use in the office.
yes that could be the issue, developing at home and work can be a pain when you are not in control of both PC installations.
Well,

This occurs when the OS doesn't recognize the COM object you are trying to connect to.
You can check this using regsvr32 with an automation server you create in delphi. once it is registered you can use it, but if you uninstall it, or for that matter, regsvr32 -u it then next time you try to access the automation server you will get a 'interface not supported' fault.

In this case, I think you simply haven't got the object registered at the machine at work.
If you have delphi you can check if you can find the object you are using in
the Components-->Import ActiveX Control tab in the IDE. I believe you will see a difference from the IDE at home.

In any case registering the Automation Server or ActiveX is a must before you work with it from a client application.

 
hello bilgehanyildirim , , , Delphi imports the DHTMEdit as an active X, and in the DHTMLEDLib_TLB.pas it has the path to the file that had the Type Library where the OCX was, maybe  C:\PROGRAM FILES\COMMON FILES\MICROSOFT SHARED\TRIEDIT\DHTMLED.OCX, there are also other Interface dependencies, like the MSHTML in  C:\WINDOWS\SYSTEM\MSHTML.TLB, , I would beleive that in your "work" Delphi, that maybe you did not import the DHTMEdit, , ,  so there may not be the proper DHTMLEDLib_TLB.pas file there to use,, , I think I would try to import or re-import the DHTMEdit into your "work"  Delphi
by "work",  I meant "office" Delphi