Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MAPI via Visual Studio 2005

MAPI via Visual Studio 2005

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpvisual-studiocomquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    YaronNir
    wrote on last edited by
    #1

    I have a serious problem, I had a project with mapi implementation on VS6. now i am trying to implement it on VS2005, i am starting to get error of include files such as edk.h and other mapi files. when i copy the files from the include dir of VS6 to VS2005, the compilation works ok but the link fails. when i copy the lib files from the VS6 project to VS2005, i can new linking error that talks about standard library....i can not solve this linking errors via VS2005..... any suggestions? thanks in advanced Yaron

    Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

    D 1 Reply Last reply
    0
    • Y YaronNir

      I have a serious problem, I had a project with mapi implementation on VS6. now i am trying to implement it on VS2005, i am starting to get error of include files such as edk.h and other mapi files. when i copy the files from the include dir of VS6 to VS2005, the compilation works ok but the link fails. when i copy the lib files from the VS6 project to VS2005, i can new linking error that talks about standard library....i can not solve this linking errors via VS2005..... any suggestions? thanks in advanced Yaron

      Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      YaronNir wrote:

      ...i can new linking error that talks about standard library...

      What linker error, and on what file?


      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

      "Judge not by the eye but by the heart." - Native American Proverb

      Y 1 Reply Last reply
      0
      • D David Crow

        YaronNir wrote:

        ...i can new linking error that talks about standard library...

        What linker error, and on what file?


        "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

        "Judge not by the eye but by the heart." - Native American Proverb

        Y Offline
        Y Offline
        YaronNir
        wrote on last edited by
        #3

        well, i've managed to solve all the errors :) i have an other problem.. i open the address book using this following code:

        LPADRLIST CMyClass::_OpenAddressBook(IAddrBook* pAdrBook)
        {
        USES_CONVERSION;

        LPADRLIST     lpadrlist  = NULL;
        LPTSTR    rglpszDestTitles\[1\];
        ULONG    rgulDestComps\[1\];
        ULONG    ulUIParam         = 0;
        
        rglpszDestTitles\[0\]        = (LPWSTR) T2A(\_T("To"));
        rgulDestComps\[0\]           = MAPI\_TO;
        
        ADRPARM  adrparm;
        adrparm.cbABContEntryID    = 0;
        adrparm.lpABContEntryID    = NULL;
        adrparm.ulFlags            = (DIALOG\_MODAL | AB\_SELECTONLY);
        adrparm.lpReserved         = NULL;
        adrparm.ulHelpContext      = 0;
        adrparm.lpszHelpFileName   = NULL;
        adrparm.lpfnABSDI          = NULL;
        adrparm.lpfnDismiss        = NULL;
        adrparm.lpvDismissContext  = NULL;
        adrparm.lpszCaption        = (LPWSTR) T2A(\_T("Select Outlook contacts"));
        adrparm.lpszNewEntryTitle  = (LPWSTR) T2A(\_T("For this dialog"));
        adrparm.lpszDestWellsTitle = (LPWSTR) T2A(\_T("Selected Recipients:"));
        adrparm.cDestFields        = 1;
        adrparm.nDestFieldFocus    = 0;
        adrparm.lppszDestTitles    = rglpszDestTitles;
        adrparm.lpulDestComps      = rgulDestComps;
        adrparm.lpContRestriction  = NULL;
        adrparm.lpHierRestriction  = NULL;
        
        HRESULT hr = (pAdrBook->Address( &ulUIParam, &adrparm, &lpadrlist));
        if (FAILED(hr))
        {
        	return NULL;
        }
        
        return lpadrlist;
        

        }

        problem is the addres book doesn't open modal :( can you help? thanks again Yaron

        Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

        D 1 Reply Last reply
        0
        • Y YaronNir

          well, i've managed to solve all the errors :) i have an other problem.. i open the address book using this following code:

          LPADRLIST CMyClass::_OpenAddressBook(IAddrBook* pAdrBook)
          {
          USES_CONVERSION;

          LPADRLIST     lpadrlist  = NULL;
          LPTSTR    rglpszDestTitles\[1\];
          ULONG    rgulDestComps\[1\];
          ULONG    ulUIParam         = 0;
          
          rglpszDestTitles\[0\]        = (LPWSTR) T2A(\_T("To"));
          rgulDestComps\[0\]           = MAPI\_TO;
          
          ADRPARM  adrparm;
          adrparm.cbABContEntryID    = 0;
          adrparm.lpABContEntryID    = NULL;
          adrparm.ulFlags            = (DIALOG\_MODAL | AB\_SELECTONLY);
          adrparm.lpReserved         = NULL;
          adrparm.ulHelpContext      = 0;
          adrparm.lpszHelpFileName   = NULL;
          adrparm.lpfnABSDI          = NULL;
          adrparm.lpfnDismiss        = NULL;
          adrparm.lpvDismissContext  = NULL;
          adrparm.lpszCaption        = (LPWSTR) T2A(\_T("Select Outlook contacts"));
          adrparm.lpszNewEntryTitle  = (LPWSTR) T2A(\_T("For this dialog"));
          adrparm.lpszDestWellsTitle = (LPWSTR) T2A(\_T("Selected Recipients:"));
          adrparm.cDestFields        = 1;
          adrparm.nDestFieldFocus    = 0;
          adrparm.lppszDestTitles    = rglpszDestTitles;
          adrparm.lpulDestComps      = rgulDestComps;
          adrparm.lpContRestriction  = NULL;
          adrparm.lpHierRestriction  = NULL;
          
          HRESULT hr = (pAdrBook->Address( &ulUIParam, &adrparm, &lpadrlist));
          if (FAILED(hr))
          {
          	return NULL;
          }
          
          return lpadrlist;
          

          }

          problem is the addres book doesn't open modal :( can you help? thanks again Yaron

          Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          YaronNir wrote:

          problem is the addres book doesn't open modal

          How are you verifying this?


          "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

          "Judge not by the eye but by the heart." - Native American Proverb

          Y 1 Reply Last reply
          0
          • D David Crow

            YaronNir wrote:

            problem is the addres book doesn't open modal

            How are you verifying this?


            "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

            "Judge not by the eye but by the heart." - Native American Proverb

            Y Offline
            Y Offline
            YaronNir
            wrote on last edited by
            #5

            DavidCrow wrote:

            How are you verifying this?

            what do you mean? the address book opens, but i can restore to the window which opened it...meaning it is not modal! try to open new email via outlook, and press on 'To' the address book will open modal.... can u help? thanks Yaron

            Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups