devices/devicemocap/speech/stdafx.h
#ifndef __STDAFX_H__
#define __STDAFX_H__
#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include <Shlobj.h>
#pragma comment ( lib, "d2d1.lib" )
#ifdef _UNICODE
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif
#endif
template<class Interface>
inline void SafeRelease( Interface *& pInterfaceToRelease )
{
if ( pInterfaceToRelease !=
NULL )
{
pInterfaceToRelease->Release();
pInterfaceToRelease =
NULL;
}
}
#endif