Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 17th November 2013, 15:02   #16  |  Link
HeartlessS Usurer
StainlessS's Avatar
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Originally Posted by Forensic View Post
error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
In VC6 New Project, I generally choose Win32 Dynamic-Link Library, with Location
set to my Projects directory and Win32 box ticked. Give it a Project name eg 'Sin'.

I next step, I always select 'An Empty DLL Project' (avoids that stdafx stuff).

In FilesView
Add avisynth.h (and any other of your self made headers) to the Header Files
Add Sin.cpp to the Source Files.

Sin.CPP (From SDK NON-ClipSample)
#include <windows.h>        // from compiler/SDK include dir
#include <math.h>           // from compiler/SDK include dir
#include "avisynth.h"       // In your project dir

AVSValue Sin(AVSValue args, void* user_data, IScriptEnvironment* env) {
    return sin(args[0].AsFloat());

extern "C" __declspec(dllexport) const char* __stdcall AvisynthPluginInit2(IScriptEnvironment* env) {
    env->AddFunction("sin", "f", Sin, 0);
    return "sin";
About as simple as it gets.

By The Way, this is how I have my Menu/Tools/Options/Directories set for VS6 + ToolKit 2003 + SDK:

Executable Files:::
C:\Program Files\Microsoft SDK\bin
C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin
C:\Program Files\Microsoft Visual Studio\VC98\BIN
C:\Program Files\Microsoft SDK\bin\winnt
C:\Program Files\Microsoft Visual Studio\COMMON\TOOLS
C:\Program Files\Microsoft Visual Studio\COMMON\MSDev98\Bin
C:\Program Files\Microsoft Visual Studio\COMMON\TOOLS\WINNT
C:\Program Files\Intel\DMIX
C:\Program Files\Support Tools

Include Files:::
C:\Program Files\Microsoft SDK\include
C:\Program Files\Microsoft Visual C++ Toolkit 2003\include
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE

Library Files:::
C:\Program Files\Microsoft SDK\lib
C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib
C:\Program Files\Microsoft Visual Studio\VC98\LIB
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB

Only first 3 files of each section really relevent, I put VC98 entries above Toolkit 2003 normally
(and for debugging as ToolKit 2003 has no debugging), and for final, switch TK2003 above VC98.

Hopefully not too dissimilar to VC2012.

PS, you might find the Avisynth Compiled Help With SDK (CHM) File for v2.6 useful (MediaFire in sig), stick it on a hot-Key.
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 20th November 2013 at 18:09.
StainlessS is offline   Reply With Quote

avisynth, c++, compile, dll

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 05:05.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.