How can I see the ocx file interfaces?

I want to see the interfaces of the .ocx file. Like this:

enter image description here

But for some .ocx, I can only see 5 functions. For instance:

enter image description here

The question arises: how can I see the interfaces of this ocx file. I tried this:

A.
a) I want to register it and see it in a visual studio. But when I register it, the error message "LoadLibrary (path: \ filename.ocx)" appears. Like this:

enter image description here

b) Then I used "Dependency Walker" to open ocx, found that there were no DLL files in the files. enter image description here

c) How can I register it?

Q. I am using the “Dll Export Viewer”, and now I can see the name of the function, but still cannot get the parameters of the function. How can I get function parameters?

+4
source share
4 answers

The interface is described in the type library (TLB). Your DLL (OCX is a DLL) must contain a TLB in the TypeLibrary resource. You can extract this TLB and get a description of the interface. This work should also be done using OLE View.

If your DLL does not contain a TLB and there is no TLB file, you will not receive an interface description.

Edit: Tools like "DLL Export Viewer" displayed less information than OLE View. It is worth using the tools provided by Microsoft.

When you have decorated names in the screenshot of your files, you get function signatures using the "Undecorator" name of Microsoft (R) C ++ "(undname.exe)

+1
source

Import the type library with Import Type Library .

Since you are using C ++, this is probably the easiest thing to do with #import .

This article Project Code contains step-by-step instructions.

+1
source

Once upon a time, I used this tool called XRay: X-Ray Vision . It was very easy to use and still works on Windows 7, I believe. But, like other tools, the DLL / OCX requires a built-in type library, or you need to find the appropriate one.

0
source

Source: https://habr.com/ru/post/1343882/


All Articles