CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Location
    canada
    Posts
    124

    Error or no error... this is the question!!!

    If the name of the librairy is "a" and the class on that librairy is "b", I use the CreateObject like this:
    Private obj as Object
    Set obj = CreateObject ("a.b")

    Is it correct?
    If not, can you tell me the good way?
    If yes, can you tell me why I got a 429 run-time error every time I tried?

    Thanks a lot for all help you can give me,
    Isabelle



  2. #2
    Join Date
    Feb 2000
    Location
    Indiana
    Posts
    308

    Re: Error or no error... this is the question!!!

    As long as library "a" is registered on your machine, this should work. Check to see when you go to "Project...References" if "a" appears in the list. If it doesn't, you need to register the library. If it does, try setting a reference to it and running your code like this:

    Dim obj as a.b

    set obj = new a.b



    This will give you many advantages over late binding.


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

Featured