Author Topic: RichEd20.dll in C:\Program Files\Common Files\microsoft shared\OFFICEnn  (Read 7408 times)

jj2007

  • Member
  • *****
  • Posts: 12469
  • Assembler is fun ;-)
    • MasmBasic
Just a little survey:

Does everybody have a RichEd20.dll in C:\Program Files\Common Files\microsoft shared\OFFICEnn, where nn=11/12/14?

I tried to google for it, but nowhere is written whether the DLLs in this folder are a) always present or b) get installed only with MS Office. Background is that the standard RichEd20.dll is incredibly slow in loading text to the RichEdit control.

anta40

  • Member
  • ***
  • Posts: 315
Re: RichEd20.dll in C:\Program Files\Common Files\microsoft shared\OFFICEnn
« Reply #1 on: October 09, 2013, 02:24:29 AM »
I have OFFICE12 and OFFICE15 directories.
OFFICE12 is empty. OFFICE15 has bunch of files in it (including RICHED20.DLL)

Probably because I uninstalled Office 2010, and installed Office 2012, then.

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1196
Re: RichEd20.dll in C:\Program Files\Common Files\microsoft shared\OFFICEnn
« Reply #2 on: October 09, 2013, 03:59:41 AM »
Both of my systems have MS Office installed. For the older system nn = 10 and for the newer nn = 11, and RICHED20.DLL is present in both.
Well Microsoft, here’s another nice mess you’ve gotten us into.

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: RichEd20.dll in C:\Program Files\Common Files\microsoft shared\OFFICEnn
« Reply #3 on: October 09, 2013, 04:26:23 AM »
i have Office 97 installed on this XP machine
folders are 10,11,12,14
they all have a RICHED20.DLL file
also - have RichEd20.dll in windows\system32

;--------------------------------------------------
looking at an older drive with no office installed (also XP MCE2005)....
it has an OFFICE11 folder, which was created when installing an msxml5 update
it has no richedit dll

it also has an OFFICE12 folder - it seems to have been created when installing the PPT viewer
it has RichEd20.dll

in the windows\system32 folder, there is a RichEdit20.dll
it appears to have been present at initial build, which was SP2 on this machine (before installing SP3)

;--------------------------------------------------
for XP SP3 users, there is a KB to update the DLL
http://support.microsoft.com/kb/953024
which i installed on my current drive, at some point

jj2007

  • Member
  • *****
  • Posts: 12469
  • Assembler is fun ;-)
    • MasmBasic
Re: RichEd20.dll in C:\Program Files\Common Files\microsoft shared\OFFICEnn
« Reply #4 on: October 09, 2013, 07:42:36 PM »
i have Office 97 installed on this XP machine
folders are 10,11,12,14
they all have a RICHED20.DLL file
also - have RichEd20.dll in windows\system32
sys32 is the "official" OS version; I'd be curious to test the Office10 version...

Quote
for XP SP3 users, there is a KB to update the DLL
http://support.microsoft.com/kb/953024

Thanks for the link, Dave. I tried that version, it's as slow as the previous one - a factor 25-32 slower compared to the OfficeNN versions. I wonder if M$ (sorry, sinsi - they deserve it in this case) is selling us a crippled version in System32 ::)

So for RichMasm I use now, in order of preference: user-defined, Office 11/12..., System32/RichEd20.dll - F9 shows loading time and version in case you are curious.

  mov esi, Chr$("\Masm32\bin\RichEd20.dll")  ; user's favourite
  .if !Exist(esi)
        GetFiles ExpandEnv$("%CommonProgramFiles%\Microsoft Shared\RichEd20.DLL", 1)
        mov esi, offset LibName  ; System32\RichEd20.dll, default if no Office folders found (very slow, factor 32)
        .if eax
                SortFiles name         ; Office11 is better than Office12/14 - seconds to load 20k lines:
                mov esi, Files$(0)     ; Win7-32: O11: 0.64, O12: 0.78, O14: 0.82, System32 21.0
        .endif                         ; Win7-64: O14: 0.7, System32 18.0
  .endif
  invoke LoadLibrary, esi

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: RichEd20.dll in C:\Program Files\Common Files\microsoft shared\OFFICEnn
« Reply #5 on: October 09, 2013, 10:15:04 PM »
i would imagine the differences have to do with security vulnerability "band-aids"
we see a similar result with various msvcrt versions