Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Convert (http://www.go4expert.com/forums/convert-t5694/)

ShadowBurn 6Aug2007 04:44

How would I go about converting BYTE * to const char *?

DaWei 6Aug2007 05:21

Re: Convert
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.

All times are GMT +5.5. The time now is 13:12.