Theos PowerBasic Museum 2017

Archive => Discussion - Legacy Software (PBWIN 9.0+/PBCC 5.0+) => Topic started by: Murray Ruggiero on December 20, 2010, 04:50:55 PM

Title: When I use the Com Browser - how do I know the class name
Post by: Murray Ruggiero on December 20, 2010, 04:50:55 PM
If I'm using a Microsoft library, such as Microsoft ADO 3.6 .... I can run the COM browser and see a series of interfaces in the right panel, with some introductory info at the start of the browser.  On the left panel, I can see several progids, and several classids.

My problem is associating the right class with the right interface.

Normally I would have something like:

Local MyInt as INT_DoSomething
let MyInt = NewCom SomeClass

But "SomeClass" is where the problem is.  Is "SomeClass" a "ProgID"?  Is it a class name?  And whatever it is, how do I know which class goes with which interface, based solely on looking at the Com Browser?
Title: Re: When I use the Com Browser - how do I know the class name
Post by: José Roca on December 20, 2010, 05:35:46 PM
Quote
But "SomeClass" is where the problem is.  Is "SomeClass" a "ProgID"?  Is it a class name?

It can be a ProgID, a class name or a ClsID (Class identifier).

Quote
And whatever it is, how do I know which class goes with which interface, based solely on looking at the Com Browser?

In the left side TreeView there is a node called CoClasses. When you double click in one the classes, all the available information about the class is displayed in the right side TreeView, among it the name of the default interface for the class. See attached picture.