CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2003
    Location
    Metz (Fr)
    Posts
    151

    Question how to convert unsigned char [] to byte Array

    Hello,

    it is possible a converting a unsigned char into byte array ?


    i ' d like converting a unsigned char [256] into byte array. (it s for converting Jni )




    pleaze help me


    Thx

    kornFR
    Please go vote , especially if you're french!

  2. #2
    Join Date
    Feb 2002
    Posts
    5,757
    One solution is reinterpret_cast.

    Kuphryn

  3. #3
    Join Date
    May 2003
    Location
    San Antonio TX
    Posts
    380
    kornfr,

    Did kuphryn answer your question?

    If not, please explain your question in more detail. I am not sure what you mean by a byte array.

    Sincerely,
    Kendall Russell
    Memphis TN
    John 3:16
    For God so loved the world ...

  4. #4
    Join Date
    Dec 2001
    Location
    Ontario, Canada
    Posts
    2,236
    byte is defined as unsigned char, so unsigned char [256] is already a byte array.

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