Results 1 to 27 of 27

Thread: Registering Components

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Registering Components

    Hi to all:

    I had create a setup with PDWwizard,and I had installed in a few computers,but the program don't work in 2 computers because,I think,the components are not registered...This is possible?????

    Wich the way to resolve this problem?

    Thanks

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Registering Components

    It is a little difficult to say for certain. Do you know which components didn't get registered?

    Are there differences between these two computers and the other computers that you ran a successful install on? If so, what are they?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    Hi:

    1 - I fink the problem is with felxgrid component.

    2 - The installation are succesfull in all computers...no prob with instalation...and the program runs,but when I enter in the menus I catch the error.



    Thanks

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Registering Components

    Have you tried to manually register them using RegSvr32 to see if that fixes the problem?

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    Yes I had tried and notthing

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Registering Components

    Ok...then do you get an error at install time, or when you try and run the application?

    I looked over the past posts and I couldn't see where that was stated, or what, specifically, the error is.

    When you run RegSvr32, what message comes back?

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    Hi:

    The error is when I try to access in a drop menu,and the error is:

    "run time error "91"

    I finc this error is notthing to do with registered components but with load a certain form...strange very strange


    Thanks

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Registering Components

    Quote Originally Posted by sacramento
    Hi:

    The error is when I try to access in a drop menu,and the error is:

    "run time error "91"

    I finc this error is notthing to do with registered components but with load a certain form...strange very strange


    Thanks
    Yes...that is an "Object variable or With block variable not set" error.

    Also, a run time error shouldn't occur if you have error trapped all of your routines. The next step is to figure out where this is occurring. Do you know? Form_Load? A click event?

    You say this is only happening on a couple of machines, so I'm led to believe this error does not occur when running the exact same code on other machines. Is this correct?

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    You say this is only happening on a couple of machines, so I'm led to believe this error does not occur when running the exact same code on other machines. Is this correct?
    No.the code are the same in all machines because I had create a setup in PDWizard.


    Also, a run time error shouldn't occur if you have error trapped all of your routines. The next step is to figure out where this is occurring. Do you know? Form_Load? A click event?
    How can I Trapped all my routines?


    Thanks

  10. #10
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Registering Components

    Quote Originally Posted by sacramento
    No.the code are the same in all machines because I had create a setup in PDWizard.



    How can I Trapped all my routines?


    Thanks
    You trap then individually. At the beginning of each sub/function or event in which code will be run, you have an On Error Goto ErrTrap (or whatever you wish to call the error trapping label.)

    At the both of each sub/function or event in which code is run, you will put:
    VB Code:
    1. Exit Sub (or Function)
    2. ErrTrap:
    3. 'write code for what you want to happen in the event of an error

  11. #11

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    ok.I will try this

    Thanks

  12. #12
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Registering Components

    Quote Originally Posted by sacramento
    ok.I will try this

    Thanks
    Ok, but all that trapping the error will do is prevent a run time error that pops the user back to the desktop. It still doesn't fix it. Have you error trap write off the name of the routine it is in, so you will be able to narrow down where this is occurring.

  13. #13
    Lively Member
    Join Date
    May 2005
    Posts
    108

    Re: Registering Components

    it could also be another dependent component is out of date (or missing) on the two machines that are not working. Run the dependency walker program on your exe (it will show you the components and all of it's dependencies).

    also you may look for the components say your component is called flexgrid.ocx... look for a file on your programming computer for flexgrid.dep. it's an ascii file.

    the setup wizard in visual basic will also list the dependencies.

  14. #14
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Registering Components

    sacramento,

    Using PDW will obviously get you into some hot water. It does not actually search your project for dependences. it relies on .dep files to tell it what it should use. If the .dep files are out of date or missing you WILL get an incomplete install.

    You might want to use an up to date installer like Inno Setup combined with **********. ********** will search your project for all dependencies even the deep ones. Even if you do not use another installer, use ********** to gather your dependencies. It can also do much more.

  15. #15

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    Thanks guys for your help

  16. #16
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Registering Components

    sacramento,

    If you would like... You could give me the vbp and exe file and I could take a look to see what dependencies you should have.

  17. #17

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    Ok Randem,

    Tomorow I send my project to you,because he is in the computer of my office.
    In this moment i'm in home!

    Thanks

  18. #18

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    Hi Randem:

    I had use ********** and now I have annother error:

    Run time error '429'
    Active X component can't create object


    I attach my project for you to see if something is wrong!

    Thanks
    Attached Files Attached Files

  19. #19
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Registering Components

    sacramento,

    You do not have many dependencies to register. You have

    MsFlxGrd.ocx and dao360.dll

    The dao360.dll should be installed with the MDAC and you just need to register the MsFlxGrd.ocx file. You should not just attempt to register the dao360.dll file. Use the MDAC to deploy this file to make sure you have the correct version.

    dao360.dll not being register is causing your problems.

  20. #20

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    Hi Randem:

    Thanks for your answear but which way can I use MDAC to deploy dao360.dll?

  21. #21
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Registering Components

    sacramento,

    I am not really understanding your question. But you can use several methods depending on the installer that you use.

    There is one that will handle all OS's Automatic OS Updater. Or you can use Microsoft's MDAC_Typ.exe file (with PDW) if you know which version it will update.

    ********** will deploy the Automatic OS Updater, PDW the MDAC_Typ.exe file.
    Last edited by randem; May 17th, 2005 at 03:31 PM.

  22. #22

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    Ok Randem thanks for the info

  23. #23

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    Hi Randem:

    Can you check this file please?Is a file made in Innosricpt!

    I had update with Automatic OS Updater,but I continue with erros...this is very strange.

    Thanks
    Attached Files Attached Files

  24. #24
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Registering Components

    sacramento,

    All you included was the ********** project file. BTW: The field ask for the (.iss) file you gave the (.pjt) file. This will eradicate your project.
    Attached Files Attached Files

  25. #25

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    Hi Randem:

    At last I have found the problem.

    The problem was with the instalation of VB6.I had try in annother computer,I have VB6,and the package have no problems.

    Thanks anyway for all

  26. #26
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Registering Components

    sacramento,

    If I understand you correctly. You installed your app on a machine that already had VB6 installed? If this is so you still have a problem. You cannot and should not count on users having VB6 installed for your app to work.

  27. #27

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Registering Components

    No Randem:

    The computer I had installed don't have VB6.

    I have made a new package in annother computer with VB6 installed

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