You cannot use MCSTR here as MClicenseparameters . license_token is not a static c-string.