You can't use MCSTR() here as p_file is not a static c-string constant.