RE: RichEdit and findText
- Posted by Pete <pete_stoner at btconnect.com> Nov 16, 2004
- 512 views
Brian Broker wrote: > > Jonas Temple wrote: > > > > Pete wrote: > > > Tried again after applying patch (I think it was already applied, but > > > did it again..) still fails - worth a try tho. > > > > > > Pete > > > > > Pete, > > > > I have Win32Lib v0.60.6 and this works for me. I reworked your program > > and this works on this WinXP Pro machine: > > > <snip> > > That still didn't work for me but it does work when I cut out support > for RichEdit 5.0. You can check to see what version you are actually > using by checking the value of WC_RICHEDIT. Anyway, when I edited > w32dll.ew as follows, it worked fine: > }}} <eucode> > global constant > riched32 = > > registerw32Library({"riched20.dll","riched32.dll"}),--{"Msftedit.dll","riched20.dll","riched32.dll"}), > > -- Rich Edit control > WC_RICHEDIT10 = "RICHEDIT", > WC_RICHEDIT20 = "RichEdit20A"--, > --WC_RICHEDIT50 = "RICHEDIT50W" > global sequence WC_RICHEDIT > > vw32Libraries[riched32][1] = linkDLL(vw32Libraries[riched32][2]) > if vw32Libraries[riched32][1][1] = 1 then > WC_RICHEDIT = WC_RICHEDIT20--WC_RICHEDIT = WC_RICHEDIT50 > > elsif vw32Libraries[riched32][1][1] = 2 then > WC_RICHEDIT = WC_RICHEDIT10--WC_RICHEDIT = WC_RICHEDIT20 > > else > WC_RICHEDIT = WC_RICHEDIT10 > end if > </eucode> {{{ > Maybe the lib shouldn't try supporting RichEdit 5.0 until we need some > particular feature of 5.0. > > -- Brian > Thanks Brian, that made it work, looks like it was using the RICHEDIT50W (or RichEdit 4.1..), strange that for Jonas using XP Pro it seemed to work whereas XP Home failed... Pete