error: expression must have pointer-to-class type

error: expression must have pointer-to-class type

I am getting an error while compiling my code.
Anybody help me to sort out this error.

C:Program FilesMicrosoft Visual StudioVC98INCLUDEcomip.h(690): error: expression must have pointer-to-class type
hr = p->QueryInterface(GetIID(), reinterpret_cast(&pInterface));
^
detected during:
instantiation of "HRESULT={LONG={long}} _com_ptr_t<_IIID>::_QueryInterface(const _InterfacePtr &) [with _IIID=_com_IIID, _InterfacePtr=const char [19]]" at line 75
instantiation of "_com_ptr_t<_IIID>::_com_ptr_t(const _InterfacePtr &) [with _IIID=_com_IIID, _InterfacePtr=char [19]]"

C:Program FilesMicrosoft Visual StudioVC98INCLUDEcomip.h(690): error: expression must have pointer-to-class type
hr = p->QueryInterface(GetIID(), reinterpret_cast(&pInterface));
^
detected during:
instantiation of "HRESULT={LONG={long}} _com_ptr_t<_IIID>::_QueryInterface(const _InterfacePtr &) [with _IIID=_com_IIID, _InterfacePtr=const char [17]]" at line 75
instantiation of "_com_ptr_t<_IIID>::_com_ptr_t(const _InterfacePtr &) [with _IIID=_com_IIID, _InterfacePtr=char [17]]"
MSMQXmlGenerator.cpp
compilation aborted for C:Documents and SettingspraveenDesktopIntelOptimizationDeskClientICLMsmq.cpp (code )

Thanks and Regards,
Praveen Kumar

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.