Link to home
Start Free TrialLog in
Avatar of ssite
ssite

asked on

Registering an ActiveX Library(DLL)

I create the simplest ActiveX library and choose Run..register activeX.

Nothing appears in the registry and indeed the library doesn't work.

I'm looking for the UID which was generated by delphi and it doesn't appear anywhere in the registry.

Any ideas ?
ASKER CERTIFIED SOLUTION
Avatar of d003303
d003303

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 BigMadDrongo
BigMadDrongo

Have you created an automation object for your library?  If not, then there will be nothing to register.

Can you post your code as a comment so I can see what your doing.
Avatar of ssite

ASKER

Allright. But I need a little clarification since I don't want to go into it myself.
For some reason, I install VB this week and I used it to create an ActiveX Dll with nothing except a class (unit) in it with two functions.

I want to do the same in delphi, creating just an activeX dll with some processing functions in it without any activeX controls, objects or documents.

Please advise.
VB creates a class with two functions in that DLL. What it also does, is creating a type library, a class factory and the registration routines.
In Delphi, you have to create a class by yourself. The best match to the VB model would be to derive from TComObject. Use the wizard for that, it also creates the necessary registration code and the corresponding class factory.
Implement two class functions, create the type library and compile. Now you can use these functions also in VB, as OLE class object member functions.

Slash/d003303