Click to See Complete Forum and Search --> : ProgID and ClassID


December 17th, 1999, 09:03 AM
How can you get a ProgID or ClassID directly from a dll or ocx without looking in the system registry?

pavan_raut
December 17th, 1999, 09:06 AM
you will require at least the progID .if you have it you can use a API ClassIdfromProgID to find the clsID.

December 17th, 1999, 11:50 AM
The thing is, I'm able to open a dll in Notepad and see the ProgID in the code. The trick is, the ProgID seems to be in different places for each dll or ocx that I open. I know there has to be a way of knowing the exact position of the ProgID within a dll file. How else does Regsvr32.exe register controls? You see, the ProgID is a combination of the Project Name and the Control Name. And I can find those two in each dll or ocx that I open.