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

Activex Component Cant Create Object

Status
Not open for further replies.

jfield817

Programmer
Jun 2, 2000
153
US
Hi All,

I am using Visual Basic 6 with an app with the following code.

Set NewEmail = CreateObject("CDONTS.newmail")

The error msg .."Activex Component Cant Create Object"
gets trapped

I have "CDONTS for 1.2" and ADO 2.7 library checked in References.

Any ideas.
Thanks much
John
 
Error 429 usually means that you are missing, or the app can't find, a required .ocx or .dll file. Check which file the app is looking for and ensure that is on the computer, is located where the app islooking for it, and that it is registered properly.

Take Care,

zemp

"Show me someone with both feet on the ground and I will show you someone who can't put their pants on."
 
Zemp,

Theres a cdonts.dll in c:\winnt\system32 - version 6.0
However SMTP is not installed on the box.

I suspect that could that have caused the error ...

We'll try installing SMTP next week .

Do u agree with that.

Thanks
John

 
You can also make sure that the dll is registered by registering the dll manually. Go to Start-run and type

regsver32 "c:\winnt\system32\cdonts.dll"

and click Ok. Make sure thab path is correct for your machine.

Take Care,

zemp

"Show me someone with both feet on the ground and I will show you someone who can't put their pants on."
 
Syntax problem, sorry typing too fast, it should be 'regsvr32' and not 'regsver32'.

Take Care,

zemp

"Show me someone with both feet on the ground and I will show you someone who can't put their pants on."
 

I have a similar problem on a Windows NT machine but my code is slightly different:

Set ObjMail = CreateObject("MAPI.Session")

I have tried to install the files 'CDO.dll' and 'CDONTS.dll' on 'c:\winnt\system32\' using regsvr32.exe, but it fails to register.

If I copy these DLLs to a different directory I can register them, but my application still returns the same error message.

Any tip? Thanks.

 
Mapi and Cdonts are two separate entities and files. Mapi uses 'MSMAPI32.ocx'. Check to see if that ocx is present and registered properly.

Take Care,

zemp

"Show me someone with both feet on the ground and I will show you someone who can't put their pants on."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top