Results 1 to 3 of 3

Thread: Newbie COM question

  1. #1

    Thread Starter
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375

    Newbie COM question

    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

  2. #2
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613
    You can have as many classes as you like.

  3. #3
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    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é

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width