CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    Chile
    Posts
    177

    Storing a byte array in an Access Database

    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


  2. #2
    Join Date
    May 1999
    Location
    Wisconsin, USA
    Posts
    953

    Re: Storing a byte array in an Access Database

    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);



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured