Aidan63 / linc_imgui

Haxe/hxcpp @:native bindings for Dear ImGui
MIT License
44 stars 7 forks source link

How to use text input (Converting string to an array of cpp.Char) #5

Closed Jarrio closed 6 years ago

Jarrio commented 6 years ago

I've tried a few different things but I can't seem to find a way to use ImGui.inputText with the second parameter. Is there anyway we can convert a haxe string to a Char? Everything I do seems to end in compiler errors like:

error C2440: 'initializing': cannot convert from 'const HX_CHAR *' to 'char

Jarrio commented 6 years ago

It appears like I had accidentally imported cpp.CastConstChar and that was causing the compilation issues. To fix I had to delete the build directory, remove the reference and recompile, Sorry!