Thread: VirtualDub2
View Single Post
Old 29th June 2016, 01:14   #36  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
I tried to compile new source from Sourceforge, failed on resource.rc, #include "winres.h".

Winres.h not included in "Windows SDK for Windows 7 with DotNet 3.5 SP1" (one I'm using with vs 2008 Exp).

So had a look at SDK I'm using for VS6(I had copy in VS6 include/mfc but wanted Express only access) and Toolkit 2003,
ie "Windows Server 2003 R2 Platform SDK"
(ISO:- http://download.cnet.com/Windows-Ser...l?tag=untagged)
[EDIT: Mar 2006 Last SDK for VS6, despite some saying last is May 2005: See note 9 on wikipedia below
https://en.wikipedia.org/wiki/Micros...DK#cite_note-9 ]

and that has required header file in include\mfc. [EDIT: Need add that path to include 's]

Compiled debug, and ran scripted.vdplugin OK.

I dont usually do any multi-solution projects (or whatever you call them), but spent some time creating Release project
and copied over a few things from the debug project (probably not all of below is necessary).
Code:
Scintilla:-
C/C++/General/Additional Include Directories/       include;lexlib;src
C/C++/Preprocessor/Preprocessor definitions/        WIN32;NDEBUG;_LIB;SCI_LEXER;STATIC_BUILD;_CRT_SECURE_NO_WARNINGS;NO_CXX11_REGEX
Librarian/General/Additional Dependencies/          imm32.lib

Scripted:-
General/Configuration Type/                         Dynamic Library(.dll)
C/C++/General/Additional Include Directories/       scintilla\include,VirtualDub
C/C++/Preprocessor/Preprocessor definitions/        WIN32;_WINDOWS;_CRT_SECURE_NO_WARNINGS;PLUGIN
C/C++/Code Generation/Runtime Library/              Multi-threaded (/MT)
Linker/General/Outfile/                             $(OutDir)\$(ProjectName).vdplugin
Linker/Input/Additional Dependencies/               comctl32.lib
Linker/Input/Module Definition File/                scripted.def
Linker/System/Subsystem/                            Windows (/SUBSYSTEM:WINDOWS)
Linker/Advanced/Target Machine/                     MachineX86 (/MACHINE:X86)
Above for those that wanna take a crack at building non debug version plugin.

EDIT: Its lovely not having to exit VDMod and start up VD Official just to run Video Analysis pass,
me loves this, congrats on job well done, and appreciated so very much.
__________________
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; 29th June 2016 at 12:53.
StainlessS is offline   Reply With Quote