There is a compile error while JUCE_STRING_UTF_TYPE set to “16”.
- JUCE 6.1.2
- Visual Studio 2019
error C2664: 'FARPROC GetProcAddress(HMODULE,LPCSTR)': cannot convert argument 2 from 'juce::StringRef' to 'LPCSTR'
Looks like the data type of the second parameter of getUiaFunction should not StringRef:
template<typename FuncType>
static FuncType getUiaFunction (HMODULE module, StringRef funcName)
{
return (FuncType) GetProcAddress (module, funcName);
}
