• Welcome to Theos PowerBasic Museum 2017.

News:

Attachments are only available to registered users.
Please register using your full, real name.

Main Menu

When I use the Com Browser - how do I know the class name

Started by Murray Ruggiero, December 20, 2010, 04:50:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Murray Ruggiero

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?

José Roca

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.