I create a header file from an IDL . The IDL file has been compiled in Visual C++ 2005 . The generated header file contains #define REQUIRED_RPCNDR_H_VERSION 475 .
I tried to use this header file in Visual Studio 2003 , where rpcndr.h contains
{
#define RPCNDR_H_VERSION ( 450 ) // and
#if ( RPCNDR_H_VERSION < REQUIRED_RPCNDR_H_VERSION )
#error incorrect <rpcndr.h> version. Use the header that matches with the MIDL compiler.
#endif
}
Since 450<475 , i get a compile time error . Is there any way i can use the header file in Visual Studio 2003 . Do i need to make changes in the compiltaion setting of idl file .
PS : I have to compile the idl file in Visual C++ 2005 only . ( I do not have a choice to compile it in VS 2003 ) .