Results 1 to 9 of 9

Thread: Activex component can't create object

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2009
    Posts
    9

    Activex component can't create object

    hi,
    i searched the internet and tried their suggestions,
    but nothings seems to work for me.

    i compiled a program in vb6, and it runs in windows me and also in xp.

    but in other machine it has an error

    Activex component can't create object

    please give an advice
    thanks


  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Activex component can't create object

    do the other machines have the activex installed?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2009
    Posts
    9

    Re: Activex component can't create object

    yes, i tried it in other computer with ME, and it works, but wiht other computer with ME, the error appears...

    please help

    thanks

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Activex component can't create object

    as you do not specify what activex you are try to create and do not say if you have installed it with your application, very hard to be able to help
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2009
    Posts
    9

    Re: Activex component can't create object

    i made an application in VB6, and its working fine in xp and also in ME,
    but when i copy/paste the apps in different machine with ME,
    theres an error

    Activex component can't create object

    maybe its the comdlg32 from vb6? i dont know

  6. #6
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Activex component can't create object

    What dependencies does your project use? What is checked in the project references window, what is checked in your toolbox (Ctrl+T)? The activeX's must be registered on whatever Win9x machine you are running it on. You can't just copy and paste the ocx/dll to their system folder and expect it to work. #1 below should solve your problems, #2 below is a manual workaround that may need to be handled for every dependency.

    1. Recommend creating a Setup.exe file using VB's Package & Deployment Wizard & having them install via the setup app, or
    2. Telling the owners of the other machine to register the ocx/dll with RegSvr32
    Last edited by LaVolpe; Jul 11th, 2009 at 07:33 AM.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2009
    Posts
    9

    Re: Activex component can't create object

    in references
    the ff are checked:
    Visual Basic for applications
    visual basic runtime objects and procedures
    visual basic objects and procedures
    OLE Automation
    Windows Script Host Object Model
    ActiveX Dll to perform Migration of MS Repository V1 to V2

    in components
    the ff are checked:
    microsoft common dialog control 6.0

    please help

    thanks in advance

  8. #8
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Activex component can't create object

    Quote Originally Posted by homer.favenir View Post
    in references
    the ff are checked:
    Visual Basic for applications
    visual basic runtime objects and procedures
    visual basic objects and procedures
    OLE Automation
    Windows Script Host Object Model
    ActiveX Dll to perform Migration of MS Repository V1 to V2

    in components
    the ff are checked:
    microsoft common dialog control 6.0

    please help

    thanks in advance
    OLE Automation
    Are you doing any Office Automation Work. If you are programming using office Automation, then you should have office installed in the client locations
    Please mark you thread resolved using the Thread Tools as shown

  9. #9
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Activex component can't create object

    when do you get the error? when the program starts or on some specific action
    do you have any error handling to help determine where the error occurs
    are you using any instances of createobject

    you may need to write out to a log file at regular intervals to find exactly where the error occurs so you can locate the missing /unregistered ocx or dll
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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