tin3tin
26th February 2009, 09:20
After several years of just beeing a avisynth user, I would like to try to code plugins(I have not c++ experience).
So far I've installed: Visual C++ 2008 Express Edition with SP1
and followed these instructions:
* Start VC++2005.
* Menu: fiIe -> Create new project.
* Select Win32 console appication.
* Enter name of your new project and press OK.
* You will in Win32 Appcilation Wizard. Press Application Settings (left panel).
* Select Application Type as DLL (but it may be console too).
* At Additional options select "Empty project"
* Copy files to project folder with Explorer.
* Add header file avisynth.h to the project: Menu Project -> Add existent item. Also add existant (e.g. simplesample.cpp) or create new CPP files by Project -> Add new item.
* Go to menu Build -> Configuration Manager, Set active solution configuration to Release (or Debug if you want firsly debug it).
* Make some changes (edit) of source codes to implement your algorithm. See SimpleSample or some other open source plugin source code and Avisynth Filter SDK for details.
* Go to Build -> Build Solution (F7) to compile and create plugin SimpleSample.dll
I've added avisynth.h and windows.h to the project folder and copy/pasted simplesample 1.7 into a cpp file.
When debugging it compiles okay and I'm able to make a release dll. Now I try to use the SimpleSample plugin in an avisynth script.
colorbars()
Loadplugin "SimpleSample.dll"
SimpleSample()
AvsP says invalids arguments to function "SimpleSample".
What am I doing wrong?
Is there a clever way to set VC++08 up so one fast can test if an avs plugin is working?
So far I've installed: Visual C++ 2008 Express Edition with SP1
and followed these instructions:
* Start VC++2005.
* Menu: fiIe -> Create new project.
* Select Win32 console appication.
* Enter name of your new project and press OK.
* You will in Win32 Appcilation Wizard. Press Application Settings (left panel).
* Select Application Type as DLL (but it may be console too).
* At Additional options select "Empty project"
* Copy files to project folder with Explorer.
* Add header file avisynth.h to the project: Menu Project -> Add existent item. Also add existant (e.g. simplesample.cpp) or create new CPP files by Project -> Add new item.
* Go to menu Build -> Configuration Manager, Set active solution configuration to Release (or Debug if you want firsly debug it).
* Make some changes (edit) of source codes to implement your algorithm. See SimpleSample or some other open source plugin source code and Avisynth Filter SDK for details.
* Go to Build -> Build Solution (F7) to compile and create plugin SimpleSample.dll
I've added avisynth.h and windows.h to the project folder and copy/pasted simplesample 1.7 into a cpp file.
When debugging it compiles okay and I'm able to make a release dll. Now I try to use the SimpleSample plugin in an avisynth script.
colorbars()
Loadplugin "SimpleSample.dll"
SimpleSample()
AvsP says invalids arguments to function "SimpleSample".
What am I doing wrong?
Is there a clever way to set VC++08 up so one fast can test if an avs plugin is working?