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
Printable View
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
You can have as many classes as you like.
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é