You mustn't use MCSTR() here as the string you are giving it isn't a c-string constant. However, you can use MCNameGetString() which returns a stringref.