Click here to Skip to main content
16,007,472 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Atl Local Variable Release Mode Problem Pin
nlecren13-Apr-04 17:59
nlecren13-Apr-04 17:59 
GeneralRe: Atl Local Variable Release Mode Problem Pin
Paul Ranson14-Apr-04 4:04
Paul Ranson14-Apr-04 4:04 
GeneralRe: Atl Local Variable Release Mode Problem Pin
nlecren14-Apr-04 13:53
nlecren14-Apr-04 13:53 
GeneralURL ISSUE in ATL Pin
Balkrishna Talele11-Apr-04 21:19
Balkrishna Talele11-Apr-04 21:19 
QuestionHow to know the message Clicking the box of combo box? Pin
freehawk9-Apr-04 22:37
freehawk9-Apr-04 22:37 
AnswerRe: How to know the message Clicking the box of combo box? Pin
Milton Karimbekallil12-Apr-04 0:33
Milton Karimbekallil12-Apr-04 0:33 
GeneralInprocess object handler for Ms-Office Pin
anshumanshinde8-Apr-04 1:02
anshumanshinde8-Apr-04 1:02 
QuestionATL bug with CComPtr and VS2003 ? Pin
Ray Gregory6-Apr-04 7:41
Ray Gregory6-Apr-04 7:41 
I am using ATL with Visual Studio.NET 2003. I seem to be having a problem
with template member specialization involving the CComPtr<> class declared
in atlcomcli.h. In the declaration for CComPtr<> the last entry for a
member function is:

template <>
T* operator=(const CComPtr<T>& lp) throw()
{
return static_cast<T*>(AtlComPtrAssign((IUnknown**)&p, lp));
}

The code I am working with declares a template member specialization similar
to this:

CFoo* CComPtr<CFoo>::operator=(const CComPtr<CFoo> & lp)
{
...
}

In VS.NET 2002 this works just fine. However, in VS.NET 2003 I get compiler
error C2511 (overloaded member function not found ...). I can remove the
line 'template <>' from the CComPtr<> class declaration in atlcomcli.h
(shown above) and the code will then compile just fine. Is this a bug in
ATL or is there something I am not seeing?

Since I don't want to modify the original ATL files, I have made special
modified copies of atlcomcli.h and, by necessity, atlbase.h and I have
included them in the project in order to do a workaround. Is there a better
way?

Thank you,

Ray Gregory
AnswerRe: ATL bug with CComPtr and VS2003 ? Pin
Mike Dimmick8-Apr-04 2:00
Mike Dimmick8-Apr-04 2:00 
GeneralRe: ATL bug with CComPtr and VS2003 ? Pin
Ray Gregory8-Apr-04 4:55
Ray Gregory8-Apr-04 4:55 
GeneralRe: ATL bug with CComPtr and VS2003 ? Pin
Ray Gregory8-Apr-04 9:27
Ray Gregory8-Apr-04 9:27 
GeneralRe: ATL bug with CComPtr and VS2003 ? Pin
Bo Hunter8-Apr-04 16:00
Bo Hunter8-Apr-04 16:00 
GeneralDeleting Lists Pin
mcsherry6-Apr-04 1:28
mcsherry6-Apr-04 1:28 
GeneralRe: Deleting Lists Pin
Mike Dimmick6-Apr-04 2:05
Mike Dimmick6-Apr-04 2:05 
GeneralRe: Deleting Lists Pin
mcsherry6-Apr-04 2:21
mcsherry6-Apr-04 2:21 
GeneralRe: Deleting Lists Pin
_Magnus_6-Apr-04 2:25
_Magnus_6-Apr-04 2:25 
GeneralRe: Deleting Lists Pin
mcsherry6-Apr-04 2:32
mcsherry6-Apr-04 2:32 
GeneralRe: Deleting Lists Pin
Paul Ranson6-Apr-04 2:43
Paul Ranson6-Apr-04 2:43 
GeneralRe: Deleting Lists Pin
Nemanja Trifunovic6-Apr-04 5:13
Nemanja Trifunovic6-Apr-04 5:13 
GeneralStoring,retrieving from an object. Pin
Member 6170675-Apr-04 5:47
Member 6170675-Apr-04 5:47 
GeneralRe: Storing,retrieving from an object. Pin
Mike Dimmick6-Apr-04 2:21
Mike Dimmick6-Apr-04 2:21 
GeneralRe: Storing,retrieving from an object. Pin
f6422-Apr-04 15:49
f6422-Apr-04 15:49 
General: IPersistStorage::Load() for Embeded object of Word Creates .doc file in Temp Pin
anshumanshinde5-Apr-04 3:15
anshumanshinde5-Apr-04 3:15 
GeneralRelease of Events params Pin
El'Cachubrey5-Apr-04 2:06
El'Cachubrey5-Apr-04 2:06 
GeneralRe: Release of Events params Pin
Steve S5-Apr-04 2:15
Steve S5-Apr-04 2:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.