Results 1 to 8 of 8

Thread: Automation Error

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    266
    Dear all,
    Anyone got the following error when instantiating an OLE DLL. The error is Automation Server can't create object.

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Dunmow,Essex,England
    Posts
    898
    The object hasn't been registered. Use regsvr32 and register it manually.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    266
    No Bill the component has been registered correctly and is present in the registry

  4. #4
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Unhappy Well

    Either it's not a valid COM object (and can't be instantiated)
    OR the registered version is incompatable with the one you're trying to use.

  5. #5
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    msdnexpert ;-)

    Give us the context in which you are trying to create the object.


    td.
    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    266
    The object is being created through an ASP page.

  7. #7
    New Member
    Join Date
    Feb 2001
    Posts
    1

    DLL registration problem

    I agree with Simon.. If your problem is occurring when you are trying to instantiate, then it sounds like a version capability problem. Check your compatibility setting under Project Properties.

    Another option is to use late binding for your DLL & force your program to grab the latest version from the registry at run-time. Although late binding can sacrifice performance. Hope this helps..

    On a similar note.. I get the "ActiveX cannot create object" error AFTER my object is instantiated (using late binding). The puzzling part is (1) I have confirmed the object has been created (2) this error only appears when I try to use the DLL's methods (3) it only seems to occur on Win95 machines.

    Ideas anyone?

  8. #8
    Lively Member
    Join Date
    Mar 2001
    Posts
    82

    Question

    May I join and ask a question of my own?

    <Rebart>
    How do you do late binding? What I do is everytime I make changes to my COM component, I have to recompile the EXE as well for it to associate itself with the new COM. Thanks

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