Results 1 to 5 of 5

Thread: Class names and CreateObject

  1. #1
    MEngrie
    Guest

    Question Class names and CreateObject

    Where can you find the class names needed to pass along in the CreateObject function.

    Using the Object browser does not give the required info

    Eg.

    Dim objTest as Object

    Set objTest = CreateObject("Excel.Application")


    This will work while Excel is not in the Object browser nor was it set as a reference.

    How does VB knows about e.g. Excel.Application? How to get a list of all available ActiveX object available on a computer?

  2. #2
    Lively Member
    Join Date
    Mar 2001
    Location
    Brooklyn, NYC
    Posts
    112
    You can find them only if they are registered components...
    Visual Basic Programmer.

    VB,ASP,VBscript,JavaScript,Oracle,Developer 2000,ADO,HTML, C#, VB.NET, ASP.NET....

  3. #3
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    You can find the classnames under Project --> References...

    It gets the list from the registry. In order for you to use an ActiveX control, it has to be registered. The registration process puts the control's CLSID into the registry along w/ its classnames, etc.

    That's where VB gets them.

  4. #4
    MEngrie
    Guest
    And if registered, where to find registered automation servers? They do not (all) appear in the object browser.

  5. #5
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    you have to check off the ones you want to use in the Project References dialog.

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