-
September 17th, 2009, 09:35 AM
#1
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
-
September 17th, 2009, 09:41 AM
#2
Re: Please Help: Using a Smart Pointer in a CMap
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.
-
September 17th, 2009, 09:44 AM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|