Static const strings cannot be passed over a dll border, functions can. Thus the change to functions.