1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Convert

Discussion in 'C' started by ShadowBurn, Aug 6, 2007.

  1. ShadowBurn

    ShadowBurn New Member

    Joined:
    Aug 6, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    How would I go about converting BYTE * to const char *?
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    Well, in the first place, there's no such thing as a BYTE * (in C), except as defined by a macro or typedef. One would like to know how it was defined in order to make a sensible conversion. One COULD make the conversion unilaterally and generally expect to get away with it in most systems, since, in most (not all) systems, pointers are merely straightforward memory addresses. Just use a cast.
     

Share This Page