Simple VB Program Missing Files Needed to Run on Other PCs
Posted on 2002-05-18
Oh, a month or so ago I finished, or so I thought, a simple Visual Basic 6 program which, when the CD is placed into a CD drive (autorun/autoplay settings set in Windows), this program starts up. Once again, as I am discovering as a VB newbie, it only works on my machine.
This program has one Form and on this Form is the Windows Media Player control. The program starts and it plays Billy Joel's "Lullaby" as the Form has its picture property set to a picture of my brother's and his wife's new son. One can stop playing this and resume playing this (after a few times, it would get tiring). Once the 'Stop' command button is clicked, a message box displays with vbOkOnly and then that is clicked and the Forms unload event is coded as such as to bring up Windows Explorer into the CD drive, whereby my brother can look through a large archive of family photographs, GIFs, JPEGs, MPEGs and so on.
This is not a complex application.
Now, I had the CD all labeled and I brought it to work and tried it on an NT machine, before I give it to brother, I want to make sure it works. Much to my chagrin and dismay, I got the following, cryptic error message:
Automation Error:Unspecified Error.
I tried it on a 2 different PCs with Windows 2000 installed on them.
The same cryptic error message ocurred on them as on the NT machine. And, of course, the application crashes in flames.
Now, I just love error messages like these. Obviously, I need to include a DLL or some run-time file or something in order for this to work on bro's PC (I think he still runs Windows95).
Could anyone please offer some suggestions here?
I am finally going to meet my new 2 1/2 month old nephew during the Memorial Day weekend - next weekend.
I'd like to be able to give this to them. I think it's sort of a cool bit a family memorabilia to give to them, providing it works the way I want it to work.