Click to See Complete Forum and Search --> : Storing a byte array in an Access Database


Jaime
September 11th, 1999, 10:30 PM
Hi...

I have to store 1200 bytes in a field of an Access database.Can I use a Memo field? what if a byte is 0? The member variable assotiated with a memo field is of CString class, so I'm not sure if storing the array in a memo field will work.

Any suggestion will be appreciated
Jaime

PeterK
September 13th, 1999, 11:42 AM
You can use CString along with an Access Memo field.

The trick is to change your call to RFX_Text in do your DoFieldExchange method.

For example:
#define MAXCHAR 5000

RFX_Text(pFX, _T("[myField]"), myCString, MAXCHAR);