CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2008
    Posts
    13

    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

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    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 :
    Code:
    >>
    put a space between them.
    Code:
    > >

  3. #3
    Join Date
    Sep 2008
    Posts
    13

    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
  •  





Click Here to Expand Forum to Full Width

Featured