By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,665 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Error user-defined type not defined with cdosys32.dll

P: 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
Share this Question
Share on Google+
4 Replies


debasisdas
Expert 5K+
P: 8,127
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

P: 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
Expert 5K+
P: 8,127
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

P: 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.