Solved

Registering an ActiveX Library(DLL)

Posted on 1998-08-25
4
607 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

786 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