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

ActiveX Cannot Create Object

Status
Not open for further replies.

byrne1

Programmer
Aug 7, 2001
415
US
I am getting a '429 - ActiveX cannot create object' in the code below. My DLL, called MyDLL, is on an MTS server and has only one class called Class1. I've exported the MTS package and installed it on the PC. I've also installed MDAC 2.6. Can anyone help me?


Dim MyObj As Object
Set MyObj = CreateObject("MyDLL.Class1")
 
CreateObject(class,[servername])

The CreateObject function syntax has these parts:

Part Description
class Required; Variant (String). The application name and class of the object to create.
servername Optional; Variant (String). The name of the network server where the object will be created. If servername is an empty string (""), the local machine is used.



Note Refer to COM documentation (see Microsoft Developer Network) for additional information on making an application visible on a remote networked computer. You may have to add a registry key for your application.

Tim

Remember the KISS principle:
Keep It Simple, Stupid!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top