Results 1 to 7 of 7

Thread: [RESOLVED] Error on loading

  1. #1

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Resolved [RESOLVED] Error on loading

    Friends,
    I had created a software and I made its distributable file(setup) using Inno Setup. But when the software is installed and on opening it, I got a runtime error 429 - Activex component can't create object. And when I click the OK button, it will display the main MDI form and when I tried to click on the menus in the menubar or the buttons in the toolbar, the code is not working. I mean when I clicked on the File->About menu, it should open another window. But when I clicked on it, it doesn't do that. Can you help me in solving this problem. Does I forget to include any resource files in my setup file.

    Thanks in advance...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  2. #2
    Lively Member astroanu2004's Avatar
    Join Date
    Jan 2008
    Location
    Sri Lanka
    Posts
    108

    Re: Error on loading

    you have to include all the referenced dlls, ocx and tlb files along with your app. inno setup might have a section to include this. these reference files need to be at the apps path or the system 32 path.

    to collect all the reference files i use the package and deployment wizard that comes with vb6. you can create a setup with the p&d also. when the p&d wizard creates a setup it copies all the reference files to a sub directory. you can add these files to your inno setup project so when the app is installed all the reference files will be copied to system 32 or the app path.

    ive never used inno setup. i use installshiled.

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Error on loading

    Thread moved to Application Deployment forum, which is for questions about installing/distributing your software

  4. #4

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Error on loading

    Thanks guys for your help. I will try astronau's method.

    In the load event of the main form, I used this code
    Code:
    Dim Db1 as DAO.Database
    Dim Rec1 as DAO.Recordset
    I think for this piece of code, I need to include the reference file. Which file should I have to include for this? On loading this form, an error shows "Activex Component can't create object"
    Any idea...???

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Error on loading

    Using astronau's method is the best idea - it should show you what you need, no matter what Components and References you have in the project.

    There are useful articles about this (and other things about VB6/InnoSetup) in the Application Deployment FAQ, at the top of this forum.

  6. #6
    Lively Member astroanu2004's Avatar
    Join Date
    Jan 2008
    Location
    Sri Lanka
    Posts
    108

    Re: Error on loading

    If you are using installshield wizard it will automaticaly detect all the dabase drivers when you are adding your reference files. It will also setup the database for you. I think if you go to their site a trial version is available.

  7. #7

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Error on loading

    Anyway thanks for all your help, members....
    Thanks a lot..

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

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