• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 160
  • Last Modified:

VB and Active X

This is my problem.I have written a small utility in VB5 on Windows NT using Active X controls.
My code:

Dim FileSystemObject as Object
Set FileSystemObject = CreateObject("Scripting.FileSystemObject")

The "CreateObject" works on the NT machine but gives me a runtime error 429:Unable to create object on a Windows 95 machine. What should I do to make sure that it will work? Please help!!!
WL
0
wariarl
Asked:
wariarl
  • 4
  • 4
1 Solution
 
wariarlAuthor Commented:
Would appreciate a quick response.
0
 
caraf_gCommented:
Most likely cause, the component you're trying to create was not installed on your Win 95 PC.

How to resolve: create a setup program for your application using the application setup wizard. This setup should include everything it needs so it should run fine after installation.
0
 
MirkwoodCommented:
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
wariarlAuthor Commented:
I included Microsoft Scripting Runtime to the list of references on my project and distributed it with the kit. Should I download scripting.asp on my Windows 95 PC again?
0
 
MirkwoodCommented:
Download Filemon or NTFilemon from www.sysinternals.com
Start Filemon and now run the application that gives the error.
Filemon will show a trace. In this trace it will also show you which
file failed to open. That's the one you are missing.

Filemon can be redirected in a dos box using filemon > output.txt

Copy the missing files and register them if needed with regsvr32.exe in case of DLL/OCX files

It can also be that you have the wrong version.
In that case download ProcessViewer from http://www.teamcti.com/pview/prcview.htm
This application shows the Modules as in use by a process. Compare the situation in which it does work with the situation in which it does not work. Goto your application and choose modules from the context menu. Copy and register the different DLL.

0
 
wariarlAuthor Commented:
Thanks, that works on my Win 95 PC, but instead of having to download the files every time, how can I distribute this with my executable from the Win NT machine?
0
 
MirkwoodCommented:
Using a setup application.
0
 
wariarlAuthor Commented:
Thanks a lot.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now