- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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]]"
hr = p->QueryInterface(GetIID(), reinterpret_cast
^
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page