managed mem char array to string
unsigned long m_dwKeyValue;
unsigned char m_bAction;
unsigned long m_Len; // length of record
... unsigned char m_FileName;.
unsigned short checksum; };
and this code:
ToFromPcStruct* tfpc = new ToFromPcStruct;
Marshal::Copy(bytesReceived, 0, System::IntPtr(tfpc), sizeof(ToFromPcStruct));
tempStr = System::Text::Encoding::ASCII->GetString(bytesReceived)->Substring(sizeof(ToFromPcStruct));
array<String^>^split = tempStr->Split(0);
tempStr = split;
Why can I not simply write
tempStr += tfpc->m_cf.m_FileName;
Last edited by rrnut; February 11th, 2011 at 05:30 PM..