C:\Program Files\VSTPlugInsC:\Program Files\Steinberg\VSTPlugins
3、从VST2的版本2.4开始,引入了如下的方法,将在注册表键中设置的路径作为VST2插件的标准目录。
HKEY_LOCAL_MACHINE\SOFTWARE\VST\VSTPluginsPath
HMODULE hModule = LoadLibrary ("SomePlugin.dll");
if (hModule)
{InitModuleProc initProc = (InitModuleProc)GetProcAddress (hModule, "InitDll");if (initProc){if (initProc () == false){FreeLibrary (module);return false;}}GetFactoryProc proc = (GetFactoryProc)GetProcAddress (hModule, "GetPluginFactory");IPluginFactory* factory = proc ? proc () : 0;if (factory){for (int32 i = 0; i < factory->countClasses (); i++){PClassInfo ci;factory->getClassInfo (i, &ci);FUnknown* obj;factory->createInstance (ci.cid, FUnknown::iid, (void**)&obj);...obj->release ();}factory->release ();}ExitModuleProc exitProc = (ExitModuleProc)GetProcAddress (hModule, "ExitDll");if (exitProc)exitProc ();FreeLibrary (hModule);
}
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态