ActiveX Error with Windows 95

bwk5502
09-11-2000, 09:13 PM
My program works great on Windows 98 and 2000, but there is a problem with Windows 95.

The program installs okay, but I get Run time error 429 "ActiveX component can't create object." when I try to exit.

My Form_QueryUnload contains:

Set FileSystemObject = _
CreateObject("Scripting.FileSystemObject")
FileSystemObject.DeleteFile App.Path & "TUTalig1.dat"
On Error GoTo FileError1
'Create new TUTalign1.dat file and write data
Open App.Path & "TUTalig1.dat" For Random As #1 Len = Len(WriteOther(1))
WriteOther(1) = cboTimeDaylight.Text
...

I think the problem may be related to the above, but not knowing anything about ActiveX, I have no idea what is wrong. (I used the VB Package Wizard to make the setup.exe.)

Is this a common problem with Windows 95?

Bil

Phil
09-12-2000, 03:20 AM
Hi,
I also experienced problems using the FileSystemObject in the end I discovered that it requires scrrun.dll to be installed on the client machine.

If I remember correctly this dll is installed with Internet Explorer 5 so your problem may not be with the windows version but with IE version or lack of. You can install scrrun.dll as part of your setup (I don't use the VB package wizard so don't know how you'd do this) or install IE 5.

Hope this helps, good luck
Phil

bwk5502
09-12-2000, 03:49 PM
Phil

I'll try your suggestion later today. I thought I would get a lot of replies on this one. Guess not. Thanks.

Bil

Phil
09-13-2000, 04:47 AM
Hi,

Just thought of this the scrrun.dll can be referenced in your project ie project>references and select "Microsoft Scripting Runtime". I presume then that the Package wizard will pick this up and install it where needed.

Good Luck

Phil

bwk5502
09-18-2000, 11:59 AM
Phil

Per your suggestion, I included the scrrun.dll in the install package and my program now installs on all Windows 95, 98, NT4, and 2000 operating systems that I've tried. Great!

Thank you very much for your help.

Bil

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum