void PWSTreeCtrl::SelectItem(const CUUID & uuid) { uuid_array_t uuid_array; uuid.GetARep(uuid_array); wxTreeItemId id = Find(uuid_array); if (id.IsOk()) wxTreeCtrl::SelectItem(id); }
int main() { uuid_str_t str; uuid_array_t uuid_array; for (int i = 0; i< 10; i++) { CUUID uuid; printf("%s\n",str); uuid.GetARep(uuid_array); printf(_T("%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\n"), uuid_array[0], uuid_array[1], uuid_array[2], uuid_array[3], uuid_array[4], uuid_array[5], uuid_array[6], uuid_array[7], uuid_array[8], uuid_array[9], uuid_array[10], uuid_array[11], uuid_array[12], uuid_array[13], uuid_array[14], uuid_array[15]); } return 0; }