CompilingAviSynthPlugins

Step by step instructions (by WilbertD to T0B1A5)

<WilbertD> Open VC++

<[T0B1A5]> ok

<WilbertD> file->new->win32 dynamic link library

<[T0B1A5]> wil: empty dll or simple

<WilbertD> empty dll

<WilbertD> go to the project tab -> add to project -> files

<[T0B1A5]> ok

<WilbertD> Here you can add existing cpp or h (headers). Add avisynth.h.

<WilbertD> after that you copied avisynth.h to your folder.

<[T0B1A5]> uh ok

<WilbertD> go to the project tab -> add to project -> new

<WilbertD> select C++ source file, and give it a name.

<WilbertD> go to the project tab -> add to project -> new -> select C/C++ header file (if you are going to use one) -> give it a name.

<[T0B1A5]> done

<WilbertD> Go to Build -> set active configuration -> select the release build.

<WilbertD> Save your workspace: file -> save workspace.

<[T0B1A5]> ok

<WilbertD> Finally, code your source/header files ...

<[T0B1A5]> ...

How to debug Avisynth plugins

Donald Graft 'neuron2' wrote:

Debugging Avisynth filter DLLs is easy; don't be scared by it. I can tell you how in VC++ 6. :)

1. Build/Active configuration -> Debug.

2. Project/Settings/Debug/General/Executable for debug session -> browse to a version of VirtualDub.exe and specify that.

3. Project/Settings/Debug/Additional DLLs -- browse to the filter DLL in the Debug directory.

4. Make an AVS script that loads and uses your filter -- be sure to load the Debug version!

5. Build the code. Set breakpoints as required.

6. Build/Start debug/Go. VirtualDub will execute. Open the AVS script in that VirtualDub instance.

Back to FilterSDK

$Date: 2007/01/04 11:33:49 $
Original version of this document at http://www.avisynth.org/CompilingAvisynth