I’m having issue reading the file path of the VST3 dll, to work out the path of the resource folder (in Windows). I’ve tried both the global gPath defined in dllmain.cpp, or with the snippet (to the debug output, which is pretty much what is dllmain.cpp):
char path[2048];
GetModuleFileName(GetModuleHandle(NULL), (LPWSTR)path, 2048);
sprintf(dbg_buf, “cannot open configuration file \n”);
OutputDebugStringA((LPCSTR)dbg_buf);
OutputDebugStringA((LPCSTR)path);
Both the output of this code or gPath is a simple “C” string, which is certainly not where the plugin dll is stored.
I’m wondering if anybody else had similar issues.