I am trying to get a
char * equivalent from Haxe and I have found in the past that
CastCharStar.fromString generally works. However, I’m not sure when this changed, but in some version of Haxe/hxcpp the generated code is now
const HX_CHAR * even when using the above code.
Here is an example:
var value = ""; folder = CastCharStar.fromString(value);
You would expect this to work considering
folder is type
CastCharStar but it doesn’t. Instead, I get the following compilation error:
'initializing': cannot convert from 'const HX_CHAR *' to 'char *'
Does anyone know what method is best to use?
Haxe version is 3.4.4 and hxcpp version is 4.0.4.