VB6 App on 98 Machine: "Unexpected Error; quitting"
HI All, :D
Before distributing my VB6 Application, I figured I would make the Application file and test it on multiple machines that I have around the house, to check for compatibility. Anyway, my first test was on a Windows 98 machine.
The application installed to the folder: C:\Program Files\Program Name
At first, the PC only had Windows 98 installed. It gave me an error about missing DLLs, so I realized I had to install the VB6 Runtime Files. I resolved that error by installing VB6 SP6 (or 5, the latest from Microsoft) Runtime files onto the machine, but now I get: "Unexpected Error; quiting" before my application even loads. :confused:
Anyone have ideas? :ehh:
I've installed Office 97, because I've read that without the MS Office Shared files installed, I may get that error. But I still get the same error. :mad:
PC specs. are minimalist: P200MHz, 48MB Ram, 4.0GB HDD, Win98 (Rev. 1 prolly)... Any ideas would be GREATLY appreciated!
Re: VB6 App on 98 Machine: "Unexpected Error; quitting"
You don't get any other information regarding the error? No "fault in kernel 32" or "runtime error x" message or anything else? Is the message coming from your app or from Windows?
Without any other info all I would know to tell would be for you to install VB on that machine and run the app in the IDE. Maybe somebody else knows something else tho....
Re: VB6 App on 98 Machine: "Unexpected Error; quitting"
No error number. IN fact, the error box title bar just says: "Error". :ehh:
Similarly, it doesn't appear to be IN my actual application yet. I have a simple SPLASH page on startup, that really doesn't so anything. So, I would think I'd get at least THAT page before an internal APP application would appear. :p
My problem is, I'm going to make this program available for FREE over the net, and I need to find out what causes this error for my FAQ/Troubleshooting pages. :sick:
Thanks for the help so far, maybe this will help!? :cool:
Re: VB6 App on 98 Machine: "Unexpected Error; quitting"
Ok... Check the images in the splash screen. The only images I've ever gotten to work in Win 98 are icons (.ico). It seems that Win98 has a problem with bmp's, gif's and jpg's, at least in image controls. Blamed if I know why tho (never been able to find any relevant documentation) and I was thinking they caused a "fault in kernel32" error in Win98 but I've been asleep since last encountering that problem so maybe not
Re: VB6 App on 98 Machine: "Unexpected Error; quitting"
try your system (not the package one) on that unit? it might be a file that you did not copy, or maybe a a file that your system is calling, where the path can not be found
Re: VB6 App on 98 Machine: "Unexpected Error; quitting"
mateo107,
You seem to have missed newbie 101, It happens all the time around here when people attempt to shortcut the installation process. You should be using an installation package to install your app. Try ********** combined with Inno Setup to get all te files you need for your installation.
Also Read This: Installation Problems
Re: VB6 App on 98 Machine: "Unexpected Error; quitting"
thanks all!
a couple of updates:
1) i removed the logo in the splash screen (which was a jpg or gif file i think) and then I got further.
Next, I got a different DLL error, something about missing some more shared files... anyway, So I used the package and deployment wizard to re-install, but it said it needed to reboot and then to re-run my setup.exe file.
So, I rebooted, but upon reboot, I get an error, now Win98 is corrupt somehow. I think it only partially installed one of the DLLs or something.
I'm going to re-install from scratch and retry and hopefully we'll get somewhere after that! :)
Re: VB6 App on 98 Machine: "Unexpected Error; quitting"
Quote:
Originally Posted by anotherVBnewbie
Ok... Check the images in the splash screen. The only images I've ever gotten to work in Win 98 are icons (.ico). It seems that Win98 has a problem with bmp's, gif's and jpg's, at least in image controls. Blamed if I know why tho (never been able to find any relevant documentation) and I was thinking they caused a "fault in kernel32" error in Win98 but I've been asleep since last encountering that problem so maybe not
There is no problem using bmp, gif, jpg, wmf, emf, ico, cur files in Win98. It will accept any of those in an image. :)
As suggested you need to make a descent installation package, Inno Setup is good work Win2k/XP.
Re: VB6 App on 98 Machine: "Unexpected Error; quitting"
Is that app. free? What's wrong with the Package and Deployment Wizard in VB6?
This is (obviously) my first attempt at installing a newly created APP on another machine! :cool:
Re: VB6 App on 98 Machine: "Unexpected Error; quitting"
yup it is you can get it in randem's signature (randem rocks! thanks men for the script it all works now)
Re: VB6 App on 98 Machine: "Unexpected Error; quitting"
Quote:
Originally Posted by mateo107
Is that app. free? What's wrong with the Package and Deployment Wizard in VB6?
This is (obviously) my first attempt at installing a newly created APP on another machine! :cool:
Yes ********** and Inno Setup are free. There is nothing wrong with P&D Wizard for Win9x/ME but you may have problems in installing to Win2k/XP.
Inno Setup
http://www.jrsoftware.org/
**********
http://www.***********/**********.html
You could try:
The Microsoft® Windows® Installer is an application installation and configuration service. Instmsi.exe is the redistributable package for installing or upgrading Windows Installer.
http://www.microsoft.com/downloads/d...DisplayLang=en
If you don't know how to use P&D Wizard then
http://home.apu.edu/~jcox/Demos/vbanddll/vbanddll_5.htm
Re: VB6 App on 98 Machine: "Unexpected Error; quitting"
I have this problem too. I try to opemn VB6 and I get this error. No splash screen, just an error dialog and Beep.
When I close the the error dialog, I get another beep.
There does not appear to be any related events i the Event Viewer..
I have done the uninstall and install of studio 6 Pro, I still can't open VB 6.
Any help will be appriciated.
Re: VB6 App on 98 Machine: "Unexpected Error; quitting"
Quote:
Originally Posted by
GenePester
I have this problem too. I try to opemn VB6 and I get this error. No splash screen, just an error dialog and Beep.
What message does the dialog have on it?