Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File system object error 1

Status
Not open for further replies.

modalman

Programmer
Feb 14, 2001
156
GB
I have written a small application that reads and writes to a file using the FSO. I have 3 pc's all with Win98se installed. However the program only works on 2 of them. With the third one it gives the following message:

Runtime error 429
ActiveX component can't create object

This happens when the exe runs the line:

Set fs = CreateObject("Scripting.FileSystemObject")

Any ideas? Many thanks in advance.

ASCII silly question, get a silly ANSI
 
Check that scrrun.dll is in the system folder on the problem PC. If not, copy it there then register it with this Run command:

regsvr32 scrrun.dll

Paul Bent
Northwind IT Systems
 
Hey, you the man. It works. Many thanks Paul. Now I need to make sure that this program runs on other pc's as it will be downloadable from a website. I can check the existence of scrrun.dll and copy it there if necessary but how would I go about registering it in VB?

ASCII silly question, get a silly ANSI
 
Use the Package and Deployment Wizard to build an installation package that contains your exe and all its run-time dependencies. Test the package on PCs that have never had your app or VB installed.

Paul Bent
Northwind IT Systems
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top