lundi 13 janvier 2020

How to convert a normal std::string to OssBitString?

The OssBitString takes in string length and a const unsigned char* as parameters. However, when I convert the std::string to const unsigned char* and pass it to OssBitString, the contents of the string get modified and contains weird characters. Any ideas on how to perform the conversion?

OssBitString(OSS_UINT32 length, const unsigned char *);

Aucun commentaire:

Enregistrer un commentaire