If your SDK has different versions, such as Microsoft drectx SDK (August 2007) and Microsoft sdks
Two or more include directories will appear in your VC directories.
If you need to compile the filter in samples of the latest Microsoft sdks
1. You need to put the include directory in Microsoft sdks in inlude in VC Directories Before other SDK paths. Otherwise, the following error occurs:
Error c2504: 'ferferenceclocktimercontrol': base class undefined
2. You need to put the bin directory in Microsoft sdks in excutable files in VC Directories Before other SDK paths. Otherwise, when using vc2005, the following error occurs:
Include/unknwn. IDL (108): Error midl2025: syntax error: expecting] or, near "annotation"
Include/unknwn. IDL (108): Error midl2026: cannot recover from earlier syntax errors;
Aborting Compilation
This is because the new version of the Vista SDK header file is used, and the old version of the midl tool is used for compilation.