You cannot use MCSTR() here as name is not a static c-string.