Results 1 to 9 of 9

Thread: ActiveX component can't create object

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    5

    ActiveX component can't create object

    Hi all,

    I've got a program that someone wrote for me (to manage databases and make report of them). I don't have the source code of it, only the setup files.

    The Problem
    ------------
    When I install and use it on Win98, everything works perfectly. But when I install it and run it on WinXP SP2, I recive the following error: "ActiveX can't create object". This error occure when I'm trying to produce a report and print it.

    I have no idea what component is it and I can't reach the programer who made it, so I can't ask him as well...

    Any idea ? I have to run it on XP machine.

  2. #2
    Fanatic Member Dnereb's Avatar
    Join Date
    Aug 2005
    Location
    Netherlands
    Posts
    863

    Re: ActiveX component can't create object

    Long Shot:

    because an dll or active(x) component isn't installed correctly.
    in Win 95 and 98 another directory is used compared to win NT, 2000 and XP
    the installer didn't tried to install in the system32 directory.
    why can't programmers keep and 31 Oct and 25 dec apart. Why Rating is Useful
    for every question you ask provide an answer on another thread.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    5

    Re: ActiveX component can't create object

    What should I do ?
    how can I fix it ?
    Can I "tell" the installer to consider the system32 folder ?

  4. #4
    Fanatic Member
    Join Date
    Aug 2005
    Location
    Up State NY
    Posts
    525

    Re: ActiveX component can't create object

    Open windows explorer and locate the file/dll.
    Click the start button and go to RUN.
    Type : regsvr32 And from the windows explorer drag the file to the text box where you entered the regsve32 command.
    Click run and it should install the dll.
    Good luck!

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    5

    Re: ActiveX component can't create object

    Quote Originally Posted by juliemac
    Open windows explorer and locate the file/dll.
    Click the start button and go to RUN.
    Type : regsvr32 And from the windows explorer drag the file to the text box where you entered the regsve32 command.
    Click run and it should install the dll.
    Good luck!
    I would be glad to try it if would just know waht file/dll is it.....

    How can I figure out what file/dll that cuse the problem ?

  6. #6

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    5

    Re: ActiveX component can't create object

    Help ? anyone ?

  7. #7
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: ActiveX component can't create object

    Quote Originally Posted by eliavm
    I would be glad to try it if would just know waht file/dll is it.....

    How can I figure out what file/dll that cuse the problem ?
    well this error generally occurs when COM objects like dll or ocx required by the application are not installed properly.

    it could be any one DLL or OCX, or maybe more than 1. it could be even the standard VB runtimes required to run the application, that the setup failed to install properly.

    install the application, then right click the application exe file and goto Dependency Walker. it lists all the dll/ocx or other COM objects which are required by the application. if there are many then it could be a problem for you but if there are just few of them then you can install them one-by-one using regsvr32 method posted above.

    you can install standard VB runtime libraries. either search MSDN or take a look here

    word of caution: it is generally not recommended to install COM objects without proper documentation. they may be dangerous to your system.
    Show Appreciation. Rate Posts.

  8. #8

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    5

    Re: ActiveX component can't create object

    I used Dependency Walker on my program's exe file and saw lot's of dll it uses. On the buttom of the window I see the following messages:

    * Warning: At least one delay-load dependency module was not found.
    * Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

    How can I trace the curropt/unregistered dll ?

  9. #9
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: ActiveX component can't create object

    Quote Originally Posted by eliavm
    I used Dependency Walker on my program's exe file and saw lot's of dll it uses. On the buttom of the window I see the following messages:

    * Warning: At least one delay-load dependency module was not found.
    * Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

    How can I trace the curropt/unregistered dll ?
    it is very difficult to tell without actually seeing the results.

    but 2 things i would like to say:

    1) use help file of the application. search for Module Dependency Tree View in the help file of Dependency walker. it has legends to show if COM objects have some errors or not. maybe using that, you may get it yourself where the problem lies.

    2) if you are sure that the main problem lies with the Application (EXE file), please ask moderators to move this thread to appropriate forum. this one, in that case, comes under Application Deployment forum.

    hope it helps you.
    Show Appreciation. Rate Posts.

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