Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determining the ProgID

Status
Not open for further replies.

sdillard

Technical User
Oct 23, 2001
32
US
I am trying to use an OCX provided by a commercial application. In their documentation they don't say what the progid is. Is there a way to find out what it is on my system? I want to use it in the "Set XXXX = CreateObject("progid") statement. I have put in a support request to the vendor but have not received a response yet.

Thanks
 
Suppose for example you want to know the class id of the Autodesk map control.
1) Open up regedit from the start/run menu
2) Select HKEY_CLASSES_ROOT
3) Look down the list until you see the Autodesk.MGMap key
4) Click on it and you will see the CLSID key
5) This has the registered class

In VB to create an object

' Create an instance
Set oMap=CreateObject("Autodesk.MGMAP")

' Call the method
oMap.Method

' Destroy the Object
If Not oMap is nothing Then Set oMap=Nothing


Hope this helps

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top