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. |
10th August 2017, 14:30 | #1 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
Build error under VS2015 but not under VS2010
I've updated the SDK files to the last version, using the SDK v1.2 and the source code of the last VDub version i have : the 1.10.5-test6.
With other code, the following is added : vdplugin.h Code:
typedef bool (VDXAPIENTRY *VDXShowStaticAboutProc)(VDXHWND parent); typedef bool (VDXAPIENTRY *VDXShowStaticConfigureProc)(VDXHWND parent); ... struct VDXPluginInfo { ... VDXShowStaticAboutProc mpStaticAboutProc; VDXShowStaticConfigureProc mpStaticConfigureProc; } Code:
template<class T> class VDXVideoFilterDefinition : public VDXFilterDefinition { public: VDXVideoFilterDefinition(const char *pszAuthor, const char *pszName, const char *pszDescription) { ... mpStaticAboutProc = T::StaticAbout == VDXVideoFilter::StaticAbout ? NULL : VDXStaticAboutConfigureAdapter<T::StaticAbout>; mpStaticConfigureProc = T::StaticConfigure == VDXVideoFilter::StaticConfigure ? NULL :VDXStaticAboutConfigureAdapter<T::StaticConfigure>; } If i comment doing the following : vdplugin.h Code:
struct VDXPluginInfo { ... /* VDXShowStaticAboutProc mpStaticAboutProc; VDXShowStaticConfigureProc mpStaticConfigureProc; */ } Code:
template<class T> class VDXVideoFilterDefinition : public VDXFilterDefinition { public: VDXVideoFilterDefinition(const char *pszAuthor, const char *pszName, const char *pszDescription) { ... /* mpStaticAboutProc = T::StaticAbout == VDXVideoFilter::StaticAbout ? NULL : VDXStaticAboutConfigureAdapter<T::StaticAbout>; mpStaticConfigureProc = T::StaticConfigure == VDXVideoFilter::StaticConfigure ? NULL :VDXStaticAboutConfigureAdapter<T::StaticConfigure>; */ } If by any chance anyone has any idea... Last edited by jpsdr; 11th August 2017 at 08:31. |
10th August 2017, 23:07 | #2 | Link |
Registered User
Join Date: Mar 2015
Posts: 775
|
Working code:
Code:
template<bool (*T_Routine)(VDXHWND)> static bool VDXAPIENTRY VDXStaticAboutConfigureAdapter(VDXHWND parent) { return T_Routine(parent); }
__________________
VirtualDub2 |
Thread Tools | Search this Thread |
Display Modes | |
|
|