Help... Output is a single char not a string...
Posted on 2006-06-29
Here is what I have...
unsigned char ItemName8;
unsigned char Name;
*nm.Zone[ItemNumber8].Name = *ItemName8;
cppString = (const char *)nm.Zone[ItemNumber8].Name;
Memo1->AppendText(" Item Name: " + gcnew System::String(cppString.c_str()) + "\r\n");
My question is: when I output the ItemName8 directly, it will output the entire array. When I store the value of ItemNumber8 to the nm.Zone.Name struct and output that, it just outputs the first char.
Any thoughts? Code is helpful...