Archived

This topic is now archived and is closed to further replies.

KurtSerge

RICH EDIT(NOOO MFC)

Recommended Posts

OK. I''m trying to put rich edit controls in a dlg box. For some reason the dlg box wont show up when have RE''s in it. I use InitCommonControlsEx(INITCOMMONCONTROLSEX icc) function to init it. what flag do i need for INITCOMMONCONTROLSEX icc.dwICC to make RC''s work? What am i doing wrong? i need help

Share this post


Link to post
Share on other sites
Hi

you have to load the richedit dll manually to get it to work. use this code before trying to create the richedit:
LoadLibrary ( "RICHED32.DLL" );



Runicsoft -- home of my open source Function Parser and more

Share this post


Link to post
Share on other sites
this is strange since LoadLibrary is a common win32 api function from windows.h

can it be that you are using mfc, atl, .net or something?
if this is the case then try calling it as win32 api function ( ::LoadLibrary(...) )

if this doesnt work then i guess there''s something very wrong with your include files







Runicsoft -- home of my open source Function Parser and more

Share this post


Link to post
Share on other sites