Hi
you could write a #define definition which creates IDispatch* or IDispatchPtr depending on the compiler version.
Julius Ivanyi