How to use 'CRecordset' to get a long database record?

I've defined a database table in ORACLE 8, one of its field's data type is 'LONG'. Now I want to use MFC database classes(CDatabase and CRecordset) to show the record's value (the field has about 400 characters), I get a message "The data has been truncated." I think it's maybe caused because the edit buffer in MFC is too short, but I don't know how to solve this question.
Who is Participating?
PIGConnect With a Mentor Commented:
Mae Your own class inheritor from CDaoRecordset. Make this field as CString and in DoFieldExchange
DFX_Text(pFX, _T("[YourFieldName]"), YourFieldName, 400 + 1);
Thah must to be work and with CRecordset but than macros is RFX_Text with same params. Default value and in DFX , and in RFX for size for text is 255. Try it!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.