Connecting Tech Pros Worldwide Help | Site Map

Error user-defined type not defined with cdosys32.dll

Newbie
 
Join Date: Jan 2008
Location: geneva
Posts: 5
#1: Jan 29 '08
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
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,505
#2: Jan 29 '08

re: Error user-defined type not defined with cdosys32.dll


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.
Newbie
 
Join Date: Jan 2008
Location: geneva
Posts: 5
#3: Jan 29 '08

re: Error user-defined type not defined with cdosys32.dll


Quote:

Originally Posted by debasisdas

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
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,505
#4: Jan 29 '08

re: Error user-defined type not defined with cdosys32.dll


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
Newbie
 
Join Date: Jan 2008
Location: geneva
Posts: 5
#5: Jan 29 '08

re: Error user-defined type not defined with cdosys32.dll


Quote:

Originally Posted by debasisdas

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.
Reply