Calling a custom DLL function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • HOWARD MYERS

    #1

    Calling a custom DLL function

    A distributed application uses the MapiSendMail function in Outlook Express
    and references the dll with the folllowing Declaration Statement:

    Declare Function MAPISendMail _
    Lib "C:\Program Files\Outlook Express\msoe.dl l" .........
    etc, etc

    Can this be re-written to cater for those cases where msoe.dll is is another
    directory by using a variable ?


  • Stefan Hoffmann

    #2
    Re: Calling a custom DLL function

    hi,

    HOWARD MYERS wrote:
    Declare Function MAPISendMail _
    Lib "C:\Program Files\Outlook Express\msoe.dl l" .........
    etc, etc
    Can this be re-written to cater for those cases where msoe.dll is is another
    directory by using a variable ?
    No, but have you tried using it with out the path in, e.g. Lib
    "msoe.dll"? This should work, if OE is environment path variable.


    mfG
    --stefan <--

    Comment

    • Alex Dybenko

      #3
      Re: Calling a custom DLL function

      Hi,
      here a sample:


      --
      Best regards,
      ___________
      Alex Dybenko (MVP)



      "HOWARD MYERS" <hmyers@REMOVET HISBITbtinterne t.comwrote in message
      news:vdidnVgQ2L ChySTaRVnyvgA@b t.com...
      >A distributed application uses the MapiSendMail function in Outlook Express
      >and references the dll with the folllowing Declaration Statement:
      >
      Declare Function MAPISendMail _
      Lib "C:\Program Files\Outlook Express\msoe.dl l" .........
      etc, etc
      >
      Can this be re-written to cater for those cases where msoe.dll is is
      another directory by using a variable ?
      >
      >

      Comment

      • lyle

        #4
        Re: Calling a custom DLL function

        On Feb 18, 5:27 am, "Alex Dybenko"
        <alex...@PLEASE .cemi.NO.rssi.S PAM.ruwrote:Nice! Much better than revising the code using SaveAsText and
        LoadFromText as I mentioned!

        Comment

        • HOWARD MYERS

          #5
          Re: Calling a custom DLL function

          Thanks for your suggestion.
          "lyle" <lyle.fairfield @gmail.comwrote in message
          news:b64a0be9-f71d-48af-bf4c-ded41804cf10@s1 9g2000prg.googl egroups.com...
          On Feb 18, 5:27 am, "Alex Dybenko"
          <alex...@PLEASE .cemi.NO.rssi.S PAM.ruwrote:>
          Nice! Much better than revising the code using SaveAsText and
          LoadFromText as I mentioned!

          Comment

          Working...