简体   繁体   中英

How to convert string to uuid

I've tried this method,But I got problem in types conversion.

unsigned char uuid[] = "00001101-0000-1000-8000-00805F9B34FB";
UUID uid;
UuidFromString(uuid, &uid);

My question is : How can i use this function??Or is there any other way to get UUID from string?

This will work:

unsigned char uuid[] = "00001101-0000-1000-8000-00805F9B34FB";
UUID uid;
UuidFromStringA(uuid, &uid);

`

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM