Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Compile time error: expression must have pointer-to-class type

anupam_singh
Beginner
266 Views
I am trying to use MSMQ classes from within my windows applciation and the compilation works fine with MSVC++ compiler.
The intel compiler throws teh following error from COMIP.h ( internally used by MSMQ)
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<:IMSMQQUEUEINFO>, _InterfacePtr=const char [19]]" at line 75
instantiation of "_com_ptr_t<_IIID>::_com_ptr_t(const _InterfacePtr &) [with _IIID=_com_IIID<:IMSMQQUEUEINFO>, _InterfacePtr=char [19]]"
Could anyone help me with this?
Thanks in advance,
anupam
0 Kudos
1 Reply
Maximillia_D_Intel
266 Views
Dear Anupam,
Have you tried submitting a premier support issue? I'm sure our support team would be willing to help you isolate the issue. If the code compiles and runs fine with Visual Studio, our compiler should be able to handle it - otherwise a bug report may be merited.
Max
0 Kudos
Reply