View Single Post
Old 10th August 2017, 14:30   #1  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,308
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;
}
videofilter.h
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>;	}
This build under VS2010, but not with VS2015, it's saying it can't resolve the overload function. Well, this is part is too much ++ for me, i don't understand.

If i comment doing the following :

vdplugin.h
Code:
struct VDXPluginInfo {
...
/*
VDXShowStaticAboutProc		mpStaticAboutProc;
VDXShowStaticConfigureProc	mpStaticConfigureProc;
*/
}
videofilter.h
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>;	
*/
}
it builds under VS2015.

If by any chance anyone has any idea...

Last edited by jpsdr; 11th August 2017 at 08:31.
jpsdr is offline   Reply With Quote