Forum > Windows

How to Verify Activex Reference Entity?

(1/1)

loaded:
Hi All,
After installing the LazActivex package in Lazarus;
With the Tools-> Import Type Library option, we can see Activex References in another application.

If I want to do the above process in my own application without an IDE, how should I proceed?
Or can I at least verify that the Exe application contains an Activex Reference?

PascalDragon:
The code essentially iterates the registry. Take a look at the ImportTypelib unit of the LazActiveX package (which is what provides that menu entry).

loaded:
Thank you for reply PascalDragon

--- Quote from: PascalDragon on December 31, 2021, 03:45:39 pm ---The code essentially iterates the registry.

--- End quote ---
I'm surprised, I didn't expect this at all. But for this, does not the Exe application need to be registered with the regsvr32 application?
In this case, how to read an Exe that has never been registered %)


--- Quote from: PascalDragon on December 31, 2021, 03:45:39 pm --- Take a look at the ImportTypelib unit of the LazActiveX package (which is what provides that menu entry).

--- End quote ---

Yes, you are right, it would be useful to examine it...

PascalDragon:

--- Quote from: loaded on December 31, 2021, 05:01:29 pm ---
--- Quote from: PascalDragon on December 31, 2021, 03:45:39 pm ---The code essentially iterates the registry.

--- End quote ---
I'm surprised, I didn't expect this at all. But for this, does not the Exe application need to be registered with the regsvr32 application?
--- End quote ---

Correct.


--- Quote from: loaded on December 31, 2021, 05:01:29 pm ---In this case, how to read an Exe that has never been registered %)
--- End quote ---

You can't. COM is working together with the registry. If your COM server not registered in the registry then there is no way for another COM application to find it. And the information to register it in the registry can be generated on the fly during installation (e.g. this is what the ComServer unit does).

loaded:
PascalDragon,Many thanks for the enlightening information.

Navigation

[0] Message Index

Go to full version