open rc file in notepad and or right click on it in solution explorer and click code view and write the line of richedit code here,
we can change the modulation of richedit but only available in version > 2
you can try loadlibrary(_T("MSFTEDIT.DLL")); to load richedit 4 or 5 and test your code again or write your original code here to help u as soon as possible