how to find OCX usage

Posted on 2011-10-25
Last Modified: 2013-11-26
Hi, I have to find the projects that use an OCX control. One way I could think of is to grep for which VC++ projects include the control's headerfile, say search for "reusecontrol.h" It is quite likely the controls that use the header are using the control itself, though it is not guranteed.

The other question that comes to my mind is, don't the OCX control have a unique GUIID that usually is written into the IDE managed resource script? Can I find the GUI from a project that I know uses the control, search for the GUIID in the other projects and thus determine the usage?

What other techniques could be employed to accurately determine the OCX control usage?

Environment: VC++, C#, Visual Studio 2008
Question by:olmuser
    1 Comment
    LVL 21

    Accepted Solution

    We're talking about finding usage in projects that you have source code for?  To cover most cases you could likely do some kind of grep looking for the CLSID (aka GUID) of the OCX, and then also the name of the control (e.g., COMCTL.ImageListCtrl).  Those would be the two common things that show up with usage.

    And it's been awhile but I think the other answer is yes, select the control in VS and the properties show in the name.  You then search your registry under HKCR for that name and it will list a CLSID underneath it.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Suggested Solutions

    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    779 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

    17 Experts available now in Live!

    Get 1:1 Help Now