Solved

Registering an ActiveX Library(DLL)

Posted on 1998-08-25
4
608 Views
Last Modified: 2012-05-04
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 ?
0
Comment
Question by:ssite
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
d003303 earned 30 total points
ID: 1337768
if the ActiveX library contains nothing (no ActiveX-controls, no COM-objects) it has nothing to register. You need to implement at least one ActiveX/COM object.

Slash/d003303
0
 

Expert Comment

by:BigMadDrongo
ID: 1337769
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.
0
 
LVL 1

Author Comment

by:ssite
ID: 1337770
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.
0
 
LVL 4

Expert Comment

by:d003303
ID: 1337771
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
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi TcxGrid group footer summary 3 356
Dev Express grid collapse 2 47
how to change, disabled button color FMX ? 1 49
Firemonkey BASS_Init into a thread 17 54
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question