Requesting CLSID from an ActiveX component

Posted on 1999-07-15
Medium Priority
Last Modified: 2010-04-06
Is there a way to get the CLSID from an ActiveX component (just the DLL/OCX/EXE if possible) within Delphi?  If so some sample source would be helpful...

Question by:jnickle
  • 2
LVL 15

Expert Comment

ID: 1388954
You can only do it if the control is registered.

LVL 17

Accepted Solution

inthe earned 100 total points
ID: 1388955
in a activex form for instance put a button,click it to get the buttonclick event then type:
when you get to typing this part if your unsure of what to put press crtl & space and its the one starting with CLASS_
that you type,in my case my activex control was called TestGetGuid_FromFormX,the following you probably know:
then set your web deployment options/click webdeploy
and in the run parameters box type the path to ie then click load and then run the resulting html file,(register the control if need be with regsvr first)click the button on the form and you will see the activex's guid.
Regards Barry

Author Comment

ID: 1388956
I don't think I was clear enough..If given a file name, I need to extract the CLSID from it if one exists for it...
LVL 17

Expert Comment

ID: 1388957
sorry mate dont know that one,or if it possible only from filename without recursive searching in the registry for the filename then reading the guid..
alex do you know a way to get it from the filename?

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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…
This is an update to some code that someone else posted on Experts Exchange. It is an alternate approach, I think a little easier to use, & makes sure that things like the Task Bar will update.
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
If you are looking for an automated tool which can generate reports for Outlook emails and other items from PST file, then you can go for Kernel PST Reporter tool. The reports which are created by this tool are helpful to analyze and understand PST …

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