Convert

Newbie Member
6Aug2007,04:44   #1
ShadowBurn's Avatar
How would I go about converting BYTE * to const char *?
Team Leader
6Aug2007,05:21   #2
DaWei's Avatar
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.