Hi,
for the problem see my edit of the previous post. I tried it again with DSK Strings plugin an it throws MissingManifestResourceException. As i said your delay sample loaded just fine (although i looked only in the debugger, cause i am at the beginning with my KeyboardWorkstation and so it doesn't have much GUI), but others, i think unmanaged, have problems.
It throws the exception at the end of VstPluginContext::Create
if(pluginCtx != nullptr)
{
try
{
pluginCtx->Initialize(pluginPath);
}
catch(...)
{
delete pluginCtx;
===> throw;
}
}
Edit: After further debugging it seems to be this part:
if(pluginMain == NULL)
{
throw gcnew System::EntryPointNotFoundException(
System::String::Format(
Jacobi::Vst::Interop::Properties::Resources::VstUnmanagedPluginContext_EntryPointNotFound,
pluginPath));
}
It tries to find VSTPluginMain as entry point and fails.
Edit: Maybe there should entry point search like here http://www.kvraudio.com/forum/printview.php?t=195887&start=0
They search for 3 different types of plugin entry points
hModule = LoadLibrary(_T("Components/Atmosphere.dll"));
if(hModule)
{
if (hModule) // if there, get its main() function
{
pMain = (VSTPluginMain) GetProcAddress(hModule, "VSTPluginMain");
if (!pMain)
pMain = (VSTPluginMain) GetProcAddress(hModule, "VstPluginMain()");
if (!pMain)
pMain = (VSTPluginMain) GetProcAddress(hModule, "main");
}
Greetings
Andi