CFStringRef to cstring in c++

CFStringRef pstr;
char *value = (char *) malloc(512);

MIDIObjectGetStringProperty(ref, propertyID, &pstr);
CFStringGetCString(pstr, value, 512, 0);
CFRelease(pstr);

 

回帖啊!!!!!!!!

你可能感兴趣的:(CFStringRef to cstring in c++)