CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Lindley

Search: Search took 0.33 seconds.

  1. Replies
    5
    Views
    63,019

    Re: How do I print out a byte array as a string?

    I'm not entirely clear what the encoding of the file is, because that's necessary to answer the question. If you simply cast input to char* and output it, then the bytes will be interpreted as if the...
  2. Replies
    5
    Views
    63,019

    Re: How do I print out a byte array as a string?

    You're going to have to give more context. There's no reason that would print out hex values.
  3. Replies
    5
    Views
    63,019

    Re: How do I print out a byte array as a string?

    I see two problems with that code:
    1) Don't trust sizeof() to give you array lengths----that will never work with dynamic-sized arrays, or arrays that have been passed into a function, so it's just...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured