Menu

#3 Outlook 2010 / MapiRTF.DLL / Colorizer

open
nobody
None
5
2012-10-16
2011-05-03
No

The hardcoded profile name "MAPI" in calls to the "readrtf" and "writertf" should be replaced with the actual profile name for the current session - Session.CurrentProfileName.
Otherwise the external DLL might crash the Outlook it the profile name is not "MAPI".

Discussion

  • Oliver Kopp

    Oliver Kopp - 2011-05-03

    I applied your patch. Thank you!

    Which version of Windows do you run? Your Outlook 2010 is 32 bit, isn't it?

    Where did you put mapirtfl.dll?

     
  • Matej Mihelic

    Matej Mihelic - 2011-05-03

    Hello.

    Yes, I am using 32-bit Outlook 2010 on Win7-64bit.
    I've put the DLL into a separate directory and modified the source to include the path to the DLL (as bellow). I think that I have also recompiled the DLL using VisualStudio 2010. I don't remember at the moment.

    'For QuoteColorizer
    Public Declare Function WriteRTF
    Lib "C:\misc\mail\macros4outlook\MapiRTF\mapirtf.dll"

    Alias "writertf" (ByVal ProfileName As String,
    ByVal MessageID As String,

    ByVal StoreID As String,
    ByVal cText As String)

    As Integer

    'For QuoteColorizer
    Public Declare Function ReadRTF
    Lib "C:\misc\mail\macros4outlook\MapiRTF\mapirtf.dll"

    Alias "readrtf" (ByVal ProfileName As String,
    ByVal SrcMsgID As String,

    ByVal SrcStoreID As String,
    ByRef MsgRTF As String)

    As Integer

     

Log in to post a comment.