Solved

Registering an ActiveX Library(DLL)

Posted on 1998-08-25
4
614 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month9 days, 10 hours left to enroll

624 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