I have created an app that has a richedit control in a dialog box. I can read RTF files in and display/edit them fine by using"
I cannot, however read plain text files. I tried changing from SF_RTF to SF_TEXT but I get:Code:
SendDlgItemMessage( hDlg, IDC_RICHEDIT, EM_STREAMIN, SF_RTF, (LPARAM)&es );
"Unhandled exception at 0x74e5b43c in Win3PRG.exe: 0xC0000005: Access violation reading location 0x007ac287."
when I try to open a file.