Recent

Author Topic: How to Verify Activex Reference Entity?  (Read 4279 times)

loaded

  • Hero Member
  • *****
  • Posts: 825
How to Verify Activex Reference Entity?
« on: December 31, 2021, 09:46:51 am »
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?
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

PascalDragon

  • Hero Member
  • *****
  • Posts: 5486
  • Compiler Developer
Re: How to Verify Activex Reference Entity?
« Reply #1 on: December 31, 2021, 03:45:39 pm »
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

  • Hero Member
  • *****
  • Posts: 825
Re: How to Verify Activex Reference Entity?
« Reply #2 on: December 31, 2021, 05:01:29 pm »
Thank you for reply PascalDragon
The code essentially iterates the registry.
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 %)

Take a look at the ImportTypelib unit of the LazActiveX package (which is what provides that menu entry).

Yes, you are right, it would be useful to examine it...
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

PascalDragon

  • Hero Member
  • *****
  • Posts: 5486
  • Compiler Developer
Re: How to Verify Activex Reference Entity?
« Reply #3 on: January 03, 2022, 01:50:59 pm »
The code essentially iterates the registry.
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?

Correct.

In this case, how to read an Exe that has never been registered %)

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

  • Hero Member
  • *****
  • Posts: 825
Re: How to Verify Activex Reference Entity?
« Reply #4 on: January 04, 2022, 05:34:16 pm »
PascalDragon,Many thanks for the enlightening information.
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

 

TinyPortal © 2005-2018