各位好:    我在学VC6时遇到一下问题:
我声明了一个CRichEditCtrl类的对象m_richEdit,但在cpp 文件中调用其内部函数
GetSelectionCharFormat()时:m_richEdit.GetSelectionCharFormat(charFormat);编译时总是出现错误入下://   error C2664: 'GetSelectionCharFormat' : cannot convert parameter 1 from 'struct CCommonView::_charformat' to 'struct _charformat &'
        A reference that is not to 'const' cannot be bound to a non-lvalue
//我理解的意思好像是不能将GetSelectionCharFormat()的参数charFormat改为指针类型,但我自己改为指针类型还是不对!其中charFormat是CHARFORMAT结构的对象
我的CHARFORMAT结构定义如下:typedef struct _charformat
{
UINT     cbSize;
DWORD    dwMask;
DWORD    dwEffects;
LONG     yHight;
LONG     yOffset;
COLORREF crTextColor;
BYTE     bCharSet;
BYTE     bPitchAndFamily;
TCHAR    szFaceName[LF_FACESIZE];
}CHARFORMAT;请各位指教