GetBytes
Copy the characters of this string into a byte vector
BOOL GetBytes( vector<byte> & vb )
Returns TRUE if success,otherwise FALSE
EX1
void string_GetBytes_ex1() { string str = "ABCD"; vector<byte> vResult; str.GetBytes(vResult); //Copy str into vResult for(int ii=0; ii<vResult.GetSize(); ii++) printf("%c", vResult[ii]); //Should print "ABCD" }
vectorbase::GetBytes
origin.h