CFStringRef to cstring in c++

来源:互联网 发布:淘宝的飞猪旅行可靠吗 编辑:程序博客网 时间:2024/04/30 17:04

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

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

 

回帖啊!!!!!!!!