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

Automation Errors

Status
Not open for further replies.

moone

Programmer
Mar 14, 2003
6
US
I ran into the automation error in VB when I tried executing my DLL.



I instantiated the DLL:
Public withevents objLogin as cLogin.Login
Set objLogin = new login
objLogin.User = "UserName"
It errors out on the Set ObjLogin = new Login


This is the error:

Runtime error '-2147024770 (8007007e)'
Automation error
The specified module could not be found.


Here is list of thing I did to try to fix the problem:

recompiled dll
Remove the reference
Unregister dll
register dll
Added reference


Thankz
Mario
moone@charter.net
 
Try changing the line that errors to...

Set objLogin = new cLogin.Login

or

Set objLogin = CreateObject("cLogin.Login")



-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Make sure the instancing property of the Class is not set to something like Public Not Createable

Also make sure you can see the class property in the VB Object Browser. (Mash the F2 button as a shortcut to bring up the Object Browser.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top