Home All Groups Group Topic Archive Search About

ActiveX can't creat object?

Author
30 May 2006 7:19 AM
Boki
Hi All,

Dim myMail
Set myMail = CreateObject("CDONTS.NewMail")

it shows "ActiveX can't creat object" error message, what should I do?

Does that mean I have to add some .bas file?
Could you please advice?

Thank you very much!

Best regards,
Boki.

Author
30 May 2006 8:07 AM
Carlos J. Quintero [VB MVP]
Hi Boki,

First, notice that this is a group for VB.NET, not for VB6 or VBScript.

That said, the CDONTS library is not installed on all Windows, only on
servers. There are two versions of CDO and some confusion. See:
http://www.outlookcode.com/d/cdo.htm

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com


Show quoteHide quote
"Boki" <bokit***@ms21.hinet.net> escribió en el mensaje
news:1148973587.805908.85700@g10g2000cwb.googlegroups.com...
> Hi All,
>
> Dim myMail
> Set myMail = CreateObject("CDONTS.NewMail")
>
> it shows "ActiveX can't creat object" error message, what should I do?
>
> Does that mean I have to add some .bas file?
> Could you please advice?
>
> Thank you very much!
>
> Best regards,
> Boki.
>
Author
30 May 2006 9:26 AM
Boki
Carlos J. Quintero [VB MVP] 寫道:

Show quoteHide quote
> Hi Boki,
>
> First, notice that this is a group for VB.NET, not for VB6 or VBScript.
>
> That said, the CDONTS library is not installed on all Windows, only on
> servers. There are two versions of CDO and some confusion. See:
> http://www.outlookcode.com/d/cdo.htm
>
> --
>
> Best regards,
>
> Carlos J. Quintero
>
> MZ-Tools: Productivity add-ins for Visual Studio
> You can code, design and document much faster:
> http://www.mztools.com
>
>
> "Boki" <bokit***@ms21.hinet.net> escribió en el mensaje
> news:1148973587.805908.85700@g10g2000cwb.googlegroups.com...
> > Hi All,
> >
> > Dim myMail
> > Set myMail = CreateObject("CDONTS.NewMail")
> >
> > it shows "ActiveX can't creat object" error message, what should I do?
> >
> > Does that mean I have to add some .bas file?
> > Could you please advice?
> >
> > Thank you very much!
> >
> > Best regards,
> > Boki.
> >

Hi Thanks a lot!

Best regards,
Boki.