Error user-defined type not defined with cdosys32.dll

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hung52
    New Member
    • Jan 2008
    • 5

    Error user-defined type not defined with cdosys32.dll

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

    Dim iCfg As CDO.Configurati on
    Dim iMsg As CDO.Message

    Set iCfg = New CDO.Configurati on
    ...

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

    I got the module cdosys32.dll in ma system Windows.system3 2

    What wrong which I encountered ? or missed ?

    Please ! Someone can explain the reason to my problem. Thank you in advanced
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    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.

    Comment

    • hung52
      New Member
      • Jan 2008
      • 5

      #3
      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

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        run this

        RegSvr32 C:\Windows\Syst em32\cdosys32.d ll

        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

        Comment

        • hung52
          New Member
          • Jan 2008
          • 5

          #5
          Originally posted by debasisdas
          run this

          RegSvr32 C:\Windows\Syst em32\cdosys32.d ll

          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.

          Comment

          Working...