Where can I find Interop.MAPI.dll

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Philip Wagenaar

    Where can I find Interop.MAPI.dll

    I need Interop.MAPI.dl l for a project, but where can I find this file?
  • Cor Ligthert [MVP]

    #2
    Re: Where can I find Interop.MAPI.dl l

    Philip,

    CMM has sent today this today in this newsgroup as an answer to me.

    I have seen that just Google on "Download msmapi32.ocx" gives direct a lot
    of download file.
    Maybe can you try this, than I have the idea that CMM will for sure help
    you.

    If we have than a complete documented sample (including where to get the
    aciveX.) than we can set it as a sample on our website.

    This is the text from CMM.
    -----------------------------------------------------------------------------------------------------

    I have confirmed personally that the mapi activex controls (msmapi32.ocx) do
    indeed work with OE... in fact they work better with OE than with Outlook
    because of Outlook's Object Model Guard.

    MAPI (Mail API) was intended to be a "generic" interface into any "default"
    e-mail program on the computer... not just MSMail or Exchange based ones.

    (VB6 code using the two controls necessary)

    MAPISession1.Do wnLoadMail = False
    MAPISession1.Si gnOn
    MAPISession1.Ne wSession = True

    MAPIMessages1.S essionID = MAPISession1.Se ssionID

    MAPIMessages1.C ompose
    MAPIMessages1.R ecipAddress = "someone@somewh ere.com"
    MAPIMessages1.m sgSubject = "My subject"
    MAPIMessages1.m sgNoteText = "bla bla bla"

    MAPIMessages1.S end

    MAPISession1.Si gnOff
    MAPISession1.Ne wSession = False
    -----------------------------------------------------------------------------------------

    Cor




    Comment

    • Philip Wagenaar

      #3
      Re: Where can I find Interop.MAPI.dl l

      I am not looking for msmapi32.ocx but for Interop.MAPI.dl l.

      I believe it should be installed on my system as office pia interop. But I
      have both full install of vs.net 2005 en office 2003

      "Cor Ligthert [MVP]" wrote:
      [color=blue]
      > Philip,
      >
      > CMM has sent today this today in this newsgroup as an answer to me.
      >
      > I have seen that just Google on "Download msmapi32.ocx" gives direct a lot
      > of download file.
      > Maybe can you try this, than I have the idea that CMM will for sure help
      > you.
      >
      > If we have than a complete documented sample (including where to get the
      > aciveX.) than we can set it as a sample on our website.
      >
      > This is the text from CMM.
      > -----------------------------------------------------------------------------------------------------
      >
      > I have confirmed personally that the mapi activex controls (msmapi32.ocx) do
      > indeed work with OE... in fact they work better with OE than with Outlook
      > because of Outlook's Object Model Guard.
      >
      > MAPI (Mail API) was intended to be a "generic" interface into any "default"
      > e-mail program on the computer... not just MSMail or Exchange based ones.
      >
      > (VB6 code using the two controls necessary)
      >
      > MAPISession1.Do wnLoadMail = False
      > MAPISession1.Si gnOn
      > MAPISession1.Ne wSession = True
      >
      > MAPIMessages1.S essionID = MAPISession1.Se ssionID
      >
      > MAPIMessages1.C ompose
      > MAPIMessages1.R ecipAddress = "someone@somewh ere.com"
      > MAPIMessages1.m sgSubject = "My subject"
      > MAPIMessages1.m sgNoteText = "bla bla bla"
      >
      > MAPIMessages1.S end
      >
      > MAPISession1.Si gnOff
      > MAPISession1.Ne wSession = False
      > -----------------------------------------------------------------------------------------
      >
      > Cor
      >
      >
      >
      >
      >[/color]

      Comment

      • CMM

        #4
        Re: Where can I find Interop.MAPI.dl l

        Possibly installed with Visual Studio Tools For Office?

        Or perhaps this PIA is installed as part of Collaboration Data Objects (CDO-
        which is an optional component when you install Outlook) or the Outlook
        Messaging Objects (also an optional component).... check Add/Remove
        Programs -> Microsoft Office. It'll show you what components are installed.

        Good luck.


        "Philip Wagenaar" <philip.wagenaa r@online.nospam > wrote in message
        news:A38D0E2F-0FB3-4C86-A554-25794252D450@mi crosoft.com...[color=blue]
        >I am not looking for msmapi32.ocx but for Interop.MAPI.dl l.
        >
        > I believe it should be installed on my system as office pia interop. But I
        > have both full install of vs.net 2005 en office 2003
        >
        > "Cor Ligthert [MVP]" wrote:
        >[color=green]
        >> Philip,
        >>
        >> CMM has sent today this today in this newsgroup as an answer to me.
        >>
        >> I have seen that just Google on "Download msmapi32.ocx" gives direct a
        >> lot
        >> of download file.
        >> Maybe can you try this, than I have the idea that CMM will for sure help
        >> you.
        >>
        >> If we have than a complete documented sample (including where to get the
        >> aciveX.) than we can set it as a sample on our website.
        >>
        >> This is the text from CMM.
        >> -----------------------------------------------------------------------------------------------------
        >>
        >> I have confirmed personally that the mapi activex controls (msmapi32.ocx)
        >> do
        >> indeed work with OE... in fact they work better with OE than with Outlook
        >> because of Outlook's Object Model Guard.
        >>
        >> MAPI (Mail API) was intended to be a "generic" interface into any
        >> "default"
        >> e-mail program on the computer... not just MSMail or Exchange based ones.
        >>
        >> (VB6 code using the two controls necessary)
        >>
        >> MAPISession1.Do wnLoadMail = False
        >> MAPISession1.Si gnOn
        >> MAPISession1.Ne wSession = True
        >>
        >> MAPIMessages1.S essionID = MAPISession1.Se ssionID
        >>
        >> MAPIMessages1.C ompose
        >> MAPIMessages1.R ecipAddress = "someone@somewh ere.com"
        >> MAPIMessages1.m sgSubject = "My subject"
        >> MAPIMessages1.m sgNoteText = "bla bla bla"
        >>
        >> MAPIMessages1.S end
        >>
        >> MAPISession1.Si gnOff
        >> MAPISession1.Ne wSession = False
        >> -----------------------------------------------------------------------------------------
        >>
        >> Cor
        >>
        >>
        >>
        >>
        >>[/color][/color]


        Comment

        • Peter Huang [MSFT]

          #5
          RE: Where can I find Interop.MAPI.dl l

          Hi Philip,

          Do you mean the interop assembly for mapi32.dll which is installed with
          outlook?
          Based on my research, there is no PIA for the DLL.

          Also please take a look at link the below.

          Excel, Exchange, and C#

          l/csharp05152003. asp

          Best regards,

          Peter Huang
          Microsoft Online Partner Support

          Get Secure! - www.microsoft.com/security
          This posting is provided "AS IS" with no warranties, and confers no rights.

          Comment

          • Jay B. Harlow [MVP - Outlook]

            #6
            Re: Where can I find Interop.MAPI.dl l

            Philip,
            Adding a COM reference to "Microsoft CDO 1.21 Library" will create the
            Interop.MAPI.dl l "Interop Assembly" (IA?) for you. CDO 1.21 is an optional
            install for Outlook.

            Outlook 2003 has PIA (Primary Interop Assembly) that are optionally
            installed with the product or as a download, while Outlook XP you can only
            download its PIA.


            NOTE: using "Microsoft CDO 1.21 Library" is not supported by Microsoft,
            however I have had success in VS 2003 (.NET 1.x):
            Microsoft Support is here to help you with Microsoft products. Find how-to articles, videos, and training for Microsoft Copilot, Microsoft 365, Windows 11, Surface, and more.



            Other Outlook MVPs have indicated that CDO does not work in VS 2005 (.NET
            2.0) for her. However I have not migrated my project to collaborate her
            findings...

            --
            Hope this helps
            Jay [MVP - Outlook]
            ..NET Application Architect, Enthusiast, & Evangelist
            T.S. Bradley - http://www.tsbradley.net


            "Philip Wagenaar" <philip.wagenaa r@online.nospam > wrote in message
            news:C5CA58EF-C0E3-4AAD-8648-600A9FF243BD@mi crosoft.com...
            |I need Interop.MAPI.dl l for a project, but where can I find this file?


            Comment

            • Philip Wagenaar

              #7
              Re: Where can I find Interop.MAPI.dl l

              Ok thank you.

              I will have to rethink my approach.

              "Jay B. Harlow [MVP - Outlook]" wrote:
              [color=blue]
              > Philip,
              > Adding a COM reference to "Microsoft CDO 1.21 Library" will create the
              > Interop.MAPI.dl l "Interop Assembly" (IA?) for you. CDO 1.21 is an optional
              > install for Outlook.
              >
              > Outlook 2003 has PIA (Primary Interop Assembly) that are optionally
              > installed with the product or as a download, while Outlook XP you can only
              > download its PIA.
              >
              >
              > NOTE: using "Microsoft CDO 1.21 Library" is not supported by Microsoft,
              > however I have had success in VS 2003 (.NET 1.x):
              > http://support.microsoft.com/?kbid=813349
              >
              >
              > Other Outlook MVPs have indicated that CDO does not work in VS 2005 (.NET
              > 2.0) for her. However I have not migrated my project to collaborate her
              > findings...
              >
              > --
              > Hope this helps
              > Jay [MVP - Outlook]
              > ..NET Application Architect, Enthusiast, & Evangelist
              > T.S. Bradley - http://www.tsbradley.net
              >
              >
              > "Philip Wagenaar" <philip.wagenaa r@online.nospam > wrote in message
              > news:C5CA58EF-C0E3-4AAD-8648-600A9FF243BD@mi crosoft.com...
              > |I need Interop.MAPI.dl l for a project, but where can I find this file?
              >
              >
              >[/color]

              Comment

              • Jay B. Harlow [MVP - Outlook]

                #8
                Re: Where can I find Interop.MAPI.dl l

                Doh!
                | NOTE: using "Microsoft CDO 1.21 Library" is not supported by Microsoft,
                | however I have had success in VS 2003 (.NET 1.x):
                | http://support.microsoft.com/?kbid=813349
                That should be "using Microsoft CDO 1.21 with .NET is not supported by
                Microsoft.

                Using CDO 1.21 from COM clients (such as VB6 & VBScript) is supported...

                --
                Hope this helps
                Jay [MVP - Outlook]
                ..NET Application Architect, Enthusiast, & Evangelist
                T.S. Bradley - http://www.tsbradley.net


                "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP @tsbradley.net> wrote in
                message news:eu64NwsKGH A.3200@tk2msftn gp13.phx.gbl...
                | Philip,
                | Adding a COM reference to "Microsoft CDO 1.21 Library" will create the
                | Interop.MAPI.dl l "Interop Assembly" (IA?) for you. CDO 1.21 is an
                optional
                | install for Outlook.
                |
                | Outlook 2003 has PIA (Primary Interop Assembly) that are optionally
                | installed with the product or as a download, while Outlook XP you can only
                | download its PIA.
                |
                |
                | NOTE: using "Microsoft CDO 1.21 Library" is not supported by Microsoft,
                | however I have had success in VS 2003 (.NET 1.x):
                | http://support.microsoft.com/?kbid=813349
                |
                |
                | Other Outlook MVPs have indicated that CDO does not work in VS 2005 (.NET
                | 2.0) for her. However I have not migrated my project to collaborate her
                | findings...
                |
                | --
                | Hope this helps
                | Jay [MVP - Outlook]
                | .NET Application Architect, Enthusiast, & Evangelist
                | T.S. Bradley - http://www.tsbradley.net
                |
                |
                | "Philip Wagenaar" <philip.wagenaa r@online.nospam > wrote in message
                | news:C5CA58EF-C0E3-4AAD-8648-600A9FF243BD@mi crosoft.com...
                ||I need Interop.MAPI.dl l for a project, but where can I find this file?
                |
                |


                Comment

                • Yan-Hong Huang[MSFT]

                  #9
                  Re: Where can I find Interop.MAPI.dl l

                  Hi Philip,

                  I agree with Jay's point here. CDO 1.2x is not supported in managed code
                  currently. That means it may bring some unexpected behavior sometimes. So
                  it is better for you to select other approachs such as System.Web.Mail .

                  Thanks very much for your understanding.

                  Best regards,
                  Yanhong Huang
                  Microsoft Community Support

                  Get Secure! ¨C www.microsoft.com/security
                  Register to Access MSDN Managed Newsgroups!
                  Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


                  This posting is provided "AS IS" with no warranties, and confers no rights.

                  Comment

                  Working...