PDA

Click to See Complete Forum and Search --> : Newbie COM question


MarkusJ_NZ
Jul 24th, 2001, 03:05 PM
Hi,

In a COM object, can I only have a single class or can I have more than one class??

If so, how do I reference the other classes?

Cheers
MarkusJ

TheBao
Jul 24th, 2001, 08:06 PM
You can have as many classes as you like.

André
Jul 25th, 2001, 07:02 AM
Think of it this way:
A Component is your DLL

And a COM object as an instance of a class in your component.

So for example in ADO:

ADO is a component: ActiveX Data Objects

If you need the recordset object you call it ADODB.Recordset
The connection object? ADODB.Connection

In conclusion MyDLL.ClassName is the object of component MyDLL.

Hope this helps

André