   Loading a VST-Plugin (as a host)
  I dont expect this post to yield much, but thought it worth a try posting just in case anyone does actually know about this stuff and can help out- cus I'm fairly sure I'm lost.I'm trying to load a vst plugin (z3ta+) into my (very) simple c++ host.I'm explicitly linking the vst plugin .dll, and I load the library fine.but when I come to GetProcAdress on the procedure I expect (which according to the vst interface every vst .dll is suppoed to provide), it returns null - i.e. doesnt find it. I noticed in someone else's (old & partial) code (which I have only partial code for, so cannot compile it or see what the other types they used are (because they didnt include the source files)) that they look for the 'main' method instead, but I dont know what they're actually taking out from it because the types they receive from it arent defined in the source I have. irritatingly.mine currently looks like this:libHandle = LoadLibrary( "C:\\Progs\\VstPlugins\\z3ta+.dll");if ( libHandle != NULL ){cout << "\n Good. loaded the lib!";getPluginFactory = (GetFactoryProc) GetProcAddress( libHandle, "GetPluginFactory" );   if ( !getPluginFactory )   {cout << "\n couldnt get the function";// handle the errorFreeLibrary( libHandle );return 1;   }}else{cout << "\n couldnt load lib";return 1;}IPluginFactory* factory = getPluginFactory();but when it runs it just wont find that procedure in the .dll . I'm guessing this is probably because it isnt actually in there (i.e. they've done something different to the spec that I have (which is very new - whereas the plugin isnt). I've found that 'main' as a function is in there and I can 'getProcAddress' that, but its not much use to me since I dont know what its returning if anything, seeing as I cant see it in the interface. This is the first time I've done anything with dll's in C, *and* the first time I've ever handled VST plugins. does anyone with any experience of VST plugins (esp. hosting them) know what could be going on here? or am I approaching using .dlls with screwy logic perhaps? (maybe they're using different older specs? (I have no access to such specs that I'm aware of))The steinberg iplugin.h interface has the following declaration, which I believe is how you're supposed to access the plugins.extern "C"{IPluginFactory* PLUGIN_API GetPluginFactory ();typedef IPluginFactory* (PLUGIN_API *GetFactoryProc)();}Bits of the interface I mentioned above are described in here if its any help:http://ygrabit.steinberg.de/users/ygrabit/public_html/vstsdk/OnlineDoc/VST_Module_Architecture_SDK/doc/files/pluginbase.htmlany ideas would be gratefully appreciated (unless they're offensive that is)   