×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Run-time Error '429' ActiveX component can't create object.

Run-time Error '429' ActiveX component can't create object.

Run-time Error '429' ActiveX component can't create object.

(OP)
Hey everyone. (Visual Basic 6 Question here)

I compiled a program that reads directories from an .ini file and deletes files out of those directories that are over thirty days old. I compiled on NT4.0 w/s and it runs on my box and others, but the one where I REALLY need to run it on gets the error in the above section line. I have verified that I have all the required run-time dll's on the target machine and I am not using any out of the ordinary objects in the code. I can't figure it out for the life of me. All the machines are at SP3

Here is the only object that I use and I think this is where I get the run-time error:

Sub ShowFolderList(folderspec)
Dim fs2, f, f1, fc, s
Set fs2 = CreateObject("Scripting.FileSystemObject")
Set f = fs2.GetFolder(FolderSpec) 'lets say replaced with c:\test
Set fc = f.Files
For Each f1 in fc
'LOGIC TO DELETE FILES
Next
End Sub

Ohh. Another thing worth mentioning is that all machines are running NTFS partitions but everyone has Full Control to the drive so I don't think it is a permissions issue.

Thanks In Advance,
Michael Sauer, MCSE
msauer@ismi.net

RE: Run-time Error '429' ActiveX component can't create object.

This might sound lame, but try reinstalling SP3 after you have run your app install. Also, I have got the same obscure error because VB6 has a known bug with it's MDAC version distribution. I know that your problem isn't with data access components, but the version thing can cause grief. Check the knowledge base (sorry, I don't recall the # ) for details on that bug. I believe SP2 for VB6 fixes it.

RE: Run-time Error '429' ActiveX component can't create object.

I had a similar problem when I used an MSOffice control by accident in one of my programs - and it was running fine on any machine which had office - got the activex error on those which didn't - you might want to check your controls...

RE: Run-time Error '429' ActiveX component can't create object.

Check the versions and file lengths of the DLL's - also the registry entries for that object.

Mike

RE: Run-time Error '429' ActiveX component can't create object.

I was struggling with this one for ages - I think that the problem lies with your file handling. You're using the new-style FileSystemObject for file manipulation. To use this you must include the Microsoft Scripting Runtime (scrrun.dll) as a reference, otherwise it won't be distributed with your app when you come to use it on another machine.

This won't fix all Error 429's, as it seems to be a bit of a catch-all error for all kinds of problems in all kinds of apps, but in this case it should work.

Good luck,

Chiz

RE: Run-time Error '429' ActiveX component can't create object.

I was struggling with this one for ages - I think that the problem lies with your file handling. You're using the new-style FileSystemObject for file manipulation. To use this you must include the Microsoft Scripting Runtime (scrrun.dll) as a reference, otherwise it won't be distributed with your app when you come to use it on another machine.

This won't fix all Error 429's, as it seems to be a bit of a catch-all error for all kinds of problems in all kinds of apps, but in this case it should work.

Good luck,

Chiz

RE: Run-time Error '429' ActiveX component can't create object.

There's a program called vbc.exe (from www.microsoft.com) which fixes known problems with sp3 and below that relate to ocx registration.

Might be worth a look.

Mike

RE: Run-time Error '429' ActiveX component can't create object.

Does somebody hear an echo in here? (did our browser lock up on ya chiz? ;-)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close