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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX error and .dll binding with VB6

Status
Not open for further replies.

marcAtBarsol

Programmer
Oct 24, 2005
4
US
Situation: I've got two programs, one that is a start-up program (we'll call it #1) for all our other programs and the other is a program bound to the start-up program (we'll call it #2). Program #2 is referenced in program #1. On most of our computers, when running the program #1 .exe, there is an error that read "ActiveX component can't create object."

This error is getting hit on the line in which the instance of the class in program #2's .dll is being set = new. It always works when run in VB through program #2's project. It also works fine as is on a few of our computers. All files referenced in both are present on all computers.

I have changed the arguments in some of the classes in program #2, which caused this error. I took the reference to the .dll out and put it back in, but it still doesn't work.

Any suggestions/help would be greatly appreciated. Thanks!
 
Could be a version conflict in one of the dll's. I have had to recompile with new version numbers (higher numbers) and then ensure that all old versions were removed from the target computer and then reinstall the program. You should also check that your setup script/file will replace all older versions of a file with newer ones.

zemp
 
Good idea. Unfortunately, it didn't work. I updated the version, ran the script to put it on all the local computers, made sure there was only one copy of the .dll on each machine, and it still only works on a few. Thank you, though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top