Re: win32lib v60.5 error code 461

new topic     » goto parent     » topic index » view thread      » older message » newer message

I messed up with RichEdit on old Windows systems.

Look in the w32DLL.ew include file. Naar the end of the file you
will see some code dealing with RichEdit classes. Replace
all after the comments ...

--/topic Constant
--/const riched32
--/desc Windows Library: Rich Edit Control


with ...
global constant
riched32    =
    registerw32Library({"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_RICHEDIT50
    
elsif vw32Libraries[riched32][1][1] = 2 then
    WC_RICHEDIT = WC_RICHEDIT20
    
else
    WC_RICHEDIT = WC_RICHEDIT10
end if


-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu