I have a dll which builds properly in VS 2005 . The dll includes "afxdisp.h" header file which is present in the default location (C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include) .
// piece of code
ifndef _AFX_NO_OLE_SUPPORT
#include "afxdisp.h"
endif
// ends
The same dll is not building in Visual Studio 2008 . It gives a lot of compile-time errors saying many variables are not defined .
Is there some other equivalent of afxdisp.h in Visual Studio 2008 .
PS : I make use of the class COleVariant which is defined in afxdisp.h ( VS 2005 ) .