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

    problem of conversion

    Is it possible to copy data from a BYTE * pointer
    to a CByteArray ?
    How?


  2. #2
    Join Date
    May 1999
    Posts
    667

    Re: problem of conversion

    copyArray(BYTE* pByte, int nSize, CByteArray& byteArray)
    {
    byteArray.SetSize(nSize);
    memcpy(byteArray.GetData(), pByte, nSize);
    }

    HTH,
    Chris



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