Please Help: Using a Smart Pointer in a CMap
Hi,
I am trying to create a CMap object with the following syntax:
SmrtPtr is an COM interface pointer which I have.
CMap<double,double,CComQIPtr<SmrtPtr, &IID_SmrtPtr>, CComQIPtr<SmrtPtr, &IID_SmrtPtr>> mapname;
The compiler throws me a syntax error. Please let me know what is wrong with my use of CMap.
Thanks,
Sagar
Re: Please Help: Using a Smart Pointer in a CMap
Quote:
The compiler throws me a syntax error.
Do we have to guess what it is ?
I think this is your problem :
put a space between them.
Re: Please Help: Using a Smart Pointer in a CMap
Sorry, did not realise that I did not post the error.
'CComQIPtr' : use of class template requires template argument list