Link to home
Start Free TrialLog in
Avatar of aztec
aztec

asked on

using the "Automation Controller"

Hi...
   I want to try the demo of an Active-X component called "HexGadgets" for sale at this web site:

http://www.hexillion.com

...The site gives examples on how to install and use for Visual Basic and C++, but not for Delphi, so I contacted the creator. He said the components indeed work in Delphi but that they have very few customers that use it, and did not have any examples for me. As far as installing it, he said something about using "Automation Controllers" with "dual interface" or "vtable interface"... and also something about "Importing Type Libraries". I had *no* idea what he was talking about, and he really couldn't give me any more help because he was totally unfamiliar with Delphi environment.

The demo for the component HexGadgets is freely available there... would it be possible for someone to see if they could install it and let me know the steps to do it?

Thanks!
   Shawn

ASKER CERTIFIED SOLUTION
Avatar of inthe
inthe

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
Avatar of aztec
aztec

ASKER

Thanks Barry...ran into a little snag though. The first library (HexDns) imported fine. Then when I went to import the next one (HexvalidEmail) into the same package, it gave this error:

"Registration procedure, Hexvaliddemaillib_tlb.Register in package c:\Program Files\Borland\Delphi6\Projects\Bpl\hexvalidemail.bpl raised exception class EFilerError: A class named TConnection already exists"

So I removed the original new package I made and started again, thinking if I put each type library in its OWN package, I wouldn't get this error. Again, the first library (HexDns) installed fine, but when I tried to install the 2nd (HexValidEmail) into a *different* package name, it gave the same error as above.

Any thoughts?

Thanks
   Shawn
Chances are you already have a component installed that has a class named TConnection. One way to find out if it is visual component is to go to the Delphi menu bar Component > Configure Pallet and in the list box labeled "Pages:" scroll to the bottom and select "(All)". Now in the list box labeled "Components" click on the column header "Name" so as to sort the list and see if you find TConnection listed. If you do then look under the "Package" and "Page" header to see where this component is derived from.


The Crazy One
hi,
yep tconnection exists in the first package so cant be installed again (doesnt matter if its in the same package or a new one,its the class that can only exists once.)

if the two tconnections were normal but different components altogether then you could go through and teh sources and change the class name to something else but here i dont know how you can do it for these when importing via dlls..
maybe youll have to choose which you need more the dns or the email one .
Avatar of aztec

ASKER

well, what I did was just manually delete all the files that started with "hex" (these are the 'hexgadget' files). This seems to have cleared it out, and I re-installed from scratch. Surely there must've been a more elegant way to delete/uninstall that TConnection thing...?

Shawn
hi,
not that im aware of.
you wouldnt normally come across this situation,(well its the first time i have)as if the controls were wrote really for delphi to use the TConnection wouldnt have been used in two places .
Avatar of aztec

ASKER

thanks inthe, worked fine!

Shawn