469,273 Members | 1,620 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,273 developers. It's quick & easy.

Error user-defined type not defined with cdosys32.dll

5
Hi experts,
I try to send a mail with attachment using cdosys.dll.

Dim iCfg As CDO.Configuration
Dim iMsg As CDO.Message

Set iCfg = New CDO.Configuration
...

the compile got error user-defined type not defined on New CDO.Configuration

I got the module cdosys32.dll in ma system Windows.system32

What wrong which I encountered ? or missed ?

Please ! Someone can explain the reason to my problem. Thank you in advanced
Jan 29 '08 #1
4 4826
debasisdas
8,127 Expert 4TB
Is the file cdosys32.dll registered with winwows ?

If not register the dll using REGSVR32 key.

Don't forget to refer to the dll from Project ---> References.
Jan 29 '08 #2
hung52
5
Is the file cdosys32.dll registered with winwows ?

If not register the dll using REGSVR32 key.

Don't forget to refer to the dll from Project ---> References.
Hi
Yes.
1) I ran REGSVR32.DLL
2) how you define the reference the dll from project ? by define one function ?
thank you
Jan 29 '08 #3
debasisdas
8,127 Expert 4TB
run this

RegSvr32 C:\Windows\System32\cdosys32.dll

You will get a message that the component is registered .

then refer to the file from project ----->reference. IF the file is not in the list browse and select the file
Jan 29 '08 #4
hung52
5
run this

RegSvr32 C:\Windows\System32\cdosys32.dll

You will get a message that the component is registered .

then refer to the file from project ----->reference. IF the file is not in the list browse and select the file
Thank you . It works now.
I understood , i need to select the Microsoft cdo windows2000 on the reference.

thank again.
Jan 29 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by Brian Conway | last post: by
2 posts views Thread by Nigel Frost | last post: by
5 posts views Thread by Martin Robins | last post: by
6 posts views Thread by John Lau | last post: by
13 posts views Thread by Edward Mitchell | last post: by
2 posts views Thread by hansiman | last post: by
2 posts views Thread by jthep | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.