Log in

View Full Version : Stdafx.h ?


ajordan
15th June 2004, 14:53
Hi!

I am shamelessly using Richard Berg's GeneralConvoution filter source code to make my first filter, a more general "convolution", allowing for an arbitrary size, off-center, rectangular matrix.

I am using Visual C++ 6.0, but I can't find the "stdafx.h" header. Where should I get this library?

Thanks for any help!

Bidoche
15th June 2004, 18:23
This one is generated by VC6 when you create a new project.

You can live without it, just remove its #include

ajordan
16th June 2004, 15:52
It wasn't generated by my VC6... Anyway, I found a way around it: since I just needed the vector template, and I found a "vector" file in the libraries directory, I included that instead of stdafx.h, and it works fine.
Thanks!

Wilbert
17th June 2004, 10:57
It is also included in the source of AviSynth itself.

Richard Berg
21st June 2004, 12:52
You shouldn't use the stdafx.h from the Avisynth source. It includes headers for VFW, ACM, and a bunch of other stuff not helpful for filters.

Anyway, it's just a VC++ trick to speed up compile times for frequently-used libraries. Feel free to ignore it.