View Single Post
Old 17th November 2005, 12:23   #50  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
Possible, but its just 1 more line of boiler plate code a plugin needs.
Code:
//------------------------
// USER_PLUGIN.cpp side
//------------------------
#include "avisynth.h"
...
// New 2.6 requirment!!!
// Declare the server pointer
ServerFunctions *serverFunctionsVectors = 0;

extern "C" __declspec(dllexport) const char* __stdcall
  AvisynthPluginInit2(IScriptEnvironment* env) {
  // Add the name of our function
  env->AddFunction("Plugin", "c", Create_Plugin, 0);
  return "Plugin text";
}
IanB is offline   Reply With Quote