After "upgrading" one of my machine to Windows 10, I discovered a glitch in its handling of the RichEdit control:
When launching
RichMasm the first time, a message box pops up saying "msptls.dll missing".
On further investigation, it turns out that this DLL sits in C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSPTLS.DLL, together with the RICHED20.DLL that
RichMasm loads successfully.
This is fixed for RichMasm in
the latest MasmBasic release, and MB coders can test the workaround (attached) with e.g.
include \masm32\MasmBasic\Res\MbGui.asm
GuiControl MyRich, "richedit"
SetWin$ hMyRich=FileRead$(CL$())
GuiEndChances are that you will never encounter the "msptls.dll missing" box, because most of the time people simply use
invoke LoadLibrary, chr$("RichEd20.dll") or
invoke LoadLibrary, chr$("msftedit.dll")
Both load the DLL from C:\Windows\System32. While I have not tested the msftedit dll extensively (it looked crappy), I did work a lot with RichEd20. It is buggy, too, but we know our workarounds. What is remarkable, though, is that the System32 version is
SLOOOOOW. You won't notice any problems with e.g. \Masm32\Examples\*.asm, but beyond a few hundred lines, loading a file into a richedit control becomes a PITA.
The solution is to use a better version. Only
Murray Sargent ("I'm a software development engineer in Microsoft Office and have been working mostly on the RichEdit editor since 1994.") knows why M$ offers the crappy DLL in System32, but fortunately, there is a solution:
Use the Office version, e.g.:
C:\Program Files (x86)\Common Files\microsoft shared\Office11\RICHED20.DLL
C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\RICHED20.DLL
RichMasm does this automatically for you, and MB coders can use
MbLoadRich PROTO
call MbLoadRich
Put an int 3 in front if you want to discover the magic workaround that makes the Office12 version work on Win10 ;-)
Depending on availability, you get Office11, then Office12, then Sys32.
The fastest one is Office11, O12 is 10% slower, Sys32 is a factor 25 or so slower.
OK, you checked, and that folder doesn't exist :(
On my Win8.1 PC that I "upgraded" to Win10, both folders are present but only Office12 has the DLL in it. That is why I got the error box. No idea whether Office12 is installed by default, and why.
Anyway, M$ is at your service:
View, print and copy Word documents, even if you don't have Word installed. This download is a replacement for Word Viewer 2003Install it (24 MB), then discover a new folder and a fast RichEdit control.
EDIT: Attached Mini_Rtf_Reader.exe needs a filename in the commandline, otherwise it throws an exception.