Is it possible to bring the toCString() method ?
also i used to do toUTF8() on Strings to cast them to standard old C style strings “char”, but now toUTF8() does not work.
Also i can’t find a way to do String:formatted(), i always get an error about the first parameter.
String::formatted (T("%2d"), time.getMilliseconds())
1>c:\devel\ctrlr\beta\source\application\ctrlrlog.h(42) : error C2664: 'juce::String::formatted' : cannot convert parameter 1 from 'const wchar_t [4]' to 'const juce::juce_wchar *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
String::formatted ("%2d", time.getMilliseconds())
1>c:\devel\ctrlr\beta\source\application\ctrlrlog.h(42) : error C2664: 'juce::String::formatted' : cannot convert parameter 1 from 'const char [4]' to 'const juce::juce_wchar *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
String::formatted (String(T("%2d")).toUTF8(), time.getMilliseconds()) // a bit hardcore i know, but i was desperate
1>c:\devel\ctrlr\beta\source\application\ctrlrlog.h(42) : error C2664: 'juce::String::formatted' : cannot convert parameter 1 from 'const juce::CharPointer_UTF8' to 'const juce::juce_wchar *'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
String::formatted (String(T("%2d")), time.getMilliseconds())
1>c:\devel\ctrlr\beta\source\application\ctrlrlog.h(42) : error C2664: 'juce::String::formatted' : cannot convert parameter 1 from 'juce::String' to 'const juce::juce_wchar *'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
