Solved

Registering an ActiveX Library(DLL)

Posted on 1998-08-25
4
604 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now