Visual Basic/VB >> Run-time Error 430/scrrun.dll dependency problem

by Jonathan » Wed, 17 Sep 2003 07:23:04 GMT

The following code seems to generate a "Run-Time Error
430: Class does not support automation or does not support
expected interface."

I am using VB6sp5.

This error does not occur when I run the code in the IDE,
nor when I run a compiled version on the same machine as I
developed it on. However, when I distribute my program
(using Package and Deployment Wizard) this error occurs on
another machine.

Also, when I run PDW, I get an out-of-date dependency
warning for scrrun.dll. Is this related to the RTE 430?
How do I update the scrrun.dep? I downloaded and
installed scr56en.exe per Microsoft Knowledge Base
Article - 254166 "BUG: Distribution of Microsoft Scripting
Runtime Library Fails", but I still get the out-of-date
dependency warning when I run PDW.

*********CODE********

Option Explicit
Dim HelpFilename As String
Dim fso As New Scripting.FileSystemObject
Dim tso

Private Sub cmdClose_Click()
frmHelp.Hide
End Sub

Private Sub Form_Load()
Dim bytResult As Byte
HelpFilename = "Help.txt"
If Dir(HelpFilename) <> "" Then
Set tso = fso.OpenTextFile(HelpFilename, ForReading,
False)
txtHelp.Text = tso.ReadAll
tso.Close
Else
bytResult = MsgBox(HelpFilename & " not found.",
vbOKOnly, "File Not Found")
End If
End Sub



Visual Basic/VB >> Run-time Error 430/scrrun.dll dependency problem

by Jonathan Clegg » Sat, 04 Oct 2003 11:15:31 GMT




Thanks Klaus. I implemented your suggestion and it solved the problem.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Similar Threads

1. Run time error 430 with late binding Outlook 2003

I am getting an error report from a user "run time error 430 Class
does not support automation". My application is using late binding to
Outlook 2003 and the following line is the crash point.

Set oObject = CreateObject("Outlook.Application")

I have occasionally over the last year or two solved this problem with
older versions of Outlook by suggesting they reinstall or use the
repair Outlook option from their Office CD. However lately the only
time I get this report is from users of Outlook 2003. Is there a
problem with using established connection techniques with '03 or is it
just that it is most likely the popular version out there?

Any tips for solving this problem?

Thanks
-mhd

2. owc11 & vb 6.0 Run-Time error '430'

3. Run-time error 430: Class does not support Automation or does not support expected interface

I have a VB 6.0 application that receives Run-time error 430 when installed
on one NT 4.0 SP6a workstation, but not on another that should be configured
identically (but obvisously is not). I realize that this is most likely due
to a specific object being the wrong version (possibly ADO).

How do I determine what Class is being referenced in the Visual Basic app
without installing the development environment on the problem machine?


4. Run time error 430

5. Run-Time error '430'

Dear All,
VB6 SP6 application on XP SP2
On my computer the application runs fine but on a second computer (XP SP2), 
it gives "Run-Time error '430': Class does not support automation or does not 
support expected interface."
The app runs on the second computer until some data are being saved to an 
access data base (.mdb file) and saved in a pdf file using PDFCreator. I 
checked MSDN and it advised to update MDAC files. I tried MDAC version 2.6, 
2.7, and 2.8 and none of them solved the problem. 
The interesting thing is that the second computer was able to run the 
application just fine before I downloaded a new version of the application. 
I appreciated any advice on how to fix this problem.
Regards,
DORI

6. application.filesearch generates run-time error '430' - Word VBA

7. out of date of dependency file of scrrun.dll

Hi,

When I packge a VB6 app using PDW, it says "the dependency file of 
scrrun.dll is found, but out of date. To proceed ..." 

How can I update this dependency file?

Thanks

8. Runtime error 430 from RegExp