-
I am having the following error when loading my application on an old 486 with windows 95:
Run-time error '0', I press OK and the following message appears: Run-time error '372': Failed to load control 'vbalListBar' from VBALLBAR6.OCX. Your version of VBALLBAR6.OCX may be outdated. Make sure you are using the version of the control that was provided with your application.
Vballbar6.oca and .dep were copied from the installation package (that came from the computer on which I develop). I need to know why I'm getting this error. I deleted .OCA and .DEP from the 486 - it still doesn't work. Moreover, the same installation package worked on a Win98 machine..
Should I try rebuilding the installation package without the .OCA and .DEP? I'm beginning to think, from what I've read, that these files are to be created from the computer who uses the OCX.
Any tips? ThankS!!
-
I had a similar problem 2 days ago, the key is to replace those 2 files through DOS becuase windows is probobbly reading the file so when you run the setup, its has lots of ON ERROR RESUME NEXT things in it, so when it sees that windows is reading the file, it doesn't replace it
If it doesn't work through dos then you can download the latest version of the ocxs and stuff
hope that helps
Dimava
-
Why would it help to copy these 2 files back? I mean, before performing my installation package on the 486, all the files (.OCX, .OCA and .DEP) were not there. They didn't work from the FIRST time.
What is your opinion on wheter or not I should include the programming machine's .OCA and .DEP in the installation package?
I hope I made myself clear... Thanks to you!
-
oh ok, I see what you are saying, I think that you should include the programming machine's .oca and .dep in the installation package
-
No further idea on why it doesn't work?
-
Also, do you have an idea of what's a .TLB file? Should I also include these in my installation package?
-
Conclusion:
why not just run the Package and Deployment wizard, and that should take care of every thing for you
dimava
-
I am using InstallMaster 8.1 (from WISE). This is supposed to read VB project and pack in all the necessary files.
I believe it's because of win95, because the same package is working on win98. But I'm still hoping it's not the installer's fault.
-
Conclustion: (continued)
try using the P & D Wizard, and if that works, then its your installer, if not then you'll have to look deeper into what might be causing the problem
Dimava
-
The .oca file is the typelibrary info for the ocx. It will create itself when you use the ocx, so doesn't need to be distributed.
The .dep file is the dependancy file of a given project/component. This is the file that the P & D wizard queries when building a setup kit to include any sub file (eg. project A uses OCX B, which in turn requires DLL C. The dep file for OCX B is useful so that DLL C can be included in the setup for Project A)
vballbar6 requires the SSubTmr.dll to run, so you need to make sure that you have included that in the setup kit as well (usingthe dep file for vballbar6 would have meant the the setupkit included the ssubtmr.dll file)
- gaffa
-
I just realized.... make sure that you registar the OCX's and DLL's
-
My components are registered correctly and ssubtmr.dll was already included.
The computer with win95 seemed to have a lot of problems because of Internet Explorer that wasn't installed. I'll get rid of the control showing a .html file in my project.