user3396542
user3396542

Reputation:

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?

Upvotes: 1

Views: 5287

Answers (1)

Jacob Seleznev
Jacob Seleznev

Reputation: 8131

This will work:

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

`

Upvotes: 2

Related Questions