Bug in juce_LV2TurtleDumpProgram.cpp

Hi,
I am experiencing a build failure in juce_lv2-helper.

The error:

2>C:\SE\JUCE7\modules\juce_audio_plugin_client\LV2\juce_LV2TurtleDumpProgram.cpp(28,75): error C2664: 'HMODULE LoadLibraryW(LPCWSTR)': cannot convert argument 1 from 'const char *' to 'LPCWSTR'
2>C:\SE\JUCE7\modules\juce_audio_plugin_client\LV2\juce_LV2TurtleDumpProgram.cpp(28,67): message : Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\libloaderapi.h(665,1): message : see declaration of 'LoadLibraryW'

Note that I have enabled UNICODE support (OS expects wchar_t* filenames) and this source code passes a narrow filename (char*). I think that’s the problem.

Suggested fix: in juce_LV2TurtleDumpProgram.cpp line 28, change ‘LoadLibrary’ to ‘LoadLibraryA’ (the specific system call for narrow strings.

I hope that’s helpful,
Jeff

Thanks for reporting, that’s fixed here: