Link to home
Start Free TrialLog in
Avatar of newnewmommon
newnewmommon

asked on

unsigned char to char

hi

it's simple question

How to convert (unsigned char * Data) on method arrgument to

char buffer[256];


mean  buffer contain Data

buffer=data
ASKER CERTIFIED SOLUTION
Avatar of wayside
wayside

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wayside
wayside

You might also want to consider using a CString rather than a character buffer (this is the MFC topic after all):

CString buffer(const char *Data);

then you don't need to worry about whether your buffer is big enough to hold the data.