Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VB and Active X

Posted on 1999-06-30
9
Medium Priority
?
152 Views
Last Modified: 2013-11-25
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
Comment
Question by:wariarl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 

Author Comment

by:wariarl
ID: 1521081
Would appreciate a quick response.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 1521082
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
 
LVL 13

Accepted Solution

by:
Mirkwood earned 1600 total points
ID: 1521083
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 13

Expert Comment

by:Mirkwood
ID: 1521084
0
 

Author Comment

by:wariarl
ID: 1521085
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
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1521086
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
 

Author Comment

by:wariarl
ID: 1521087
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
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1521088
Using a setup application.
0
 

Author Comment

by:wariarl
ID: 1521089
Thanks a lot.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question