"wchar_t" compilation error

const StringArray MainComponent::getMenuBarNames() { const wchar_t * const names[] = { L"文件", L"编辑", L"视图", L"工具", L"帮助", 0 }; return StringArray (names); }

VS2008 compile failed, suggesting that:

Error 1 error C2440: “”: Can’t from “const wchar_t * const [5]” convert to “juce:: StringArray”

JUCE 1.52 build successful, upgrade to 1.53.34, the compilation fails.

How to solve? thanks!

Thanks - I’d forgotten to add a StringArray constructor that accepts wchar_t - I’ll do that…

At present correct.

Thanks Jules!