Click here to Skip to main content
15,904,986 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralList Control in ATL dialog Pin
abel66615-Feb-05 8:10
abel66615-Feb-05 8:10 
GeneralRe: List Control in ATL dialog Pin
Michael Dunn15-Feb-05 8:49
sitebuilderMichael Dunn15-Feb-05 8:49 
GeneralRe: List Control in ATL dialog Pin
abel66615-Feb-05 21:16
abel66615-Feb-05 21:16 
Questionhow to debug exchange store event sink Pin
muh22m15-Feb-05 7:53
muh22m15-Feb-05 7:53 
QuestionHow to get random numbers? Pin
Anonymous14-Feb-05 20:05
Anonymous14-Feb-05 20:05 
Generalspirit and unicode Pin
bruce2g14-Feb-05 14:40
bruce2g14-Feb-05 14:40 
GeneralRe: spirit and unicode Pin
Stuart Dootson15-Feb-05 5:19
professionalStuart Dootson15-Feb-05 5:19 
GeneralATL Collection Problem Pin
ekling14-Feb-05 11:32
ekling14-Feb-05 11:32 
Hi,
I’m using collection with ATL and I have the following problem:
I would like to access the items in the collection from a function in the collection class and call a function
In order to create the collection I’ve used the collection wizard from this site.
The collection is vector of ICard items as followed (CCard is simple ATL object):

<br />
typedef ICollectionOnSTLImpl<IDispatchImpl<ICards, &IID_ICards>,<br />
                             vector< CAdapt< CComPtr<ICard> > >,<br />
                             ICard*,<br />
                             _CopyItfFromAdaptItf<ICard>,<br />
                             CComEnumICardVariantOnSTLvector><br />
        ICardsImpl;<br />
/////////////////////////////////////////////////////////////////////////////<br />
// CCards<br />
class ATL_NO_VTABLE CCards : <br />
	public CComObjectRootEx<CComSingleThreadModel>,<br />
	public CComCoClass<CCards, &CLSID_Cards>,<br />
	public ISupportErrorInfo,<br />
	public ICardsImpl<br />
{<br />

I’ve tried to do it like this (CardToString is a function in CCard class and not part of the interface):

<br />
m_coll[i-1].CardToString(str);<br />


I am getting the following compilation error:
error C2039: 'CardToString' : is not a member of 'CAdapt<class atl::ccomptr<struct="" icard=""> >'

what should I do in order to access item functions that are not part of the interface in the collection?
Generalconvert PWSTR to LPCTSTR Pin
dabayi14-Feb-05 0:03
dabayi14-Feb-05 0:03 
GeneralRe: convert PWSTR to LPCTSTR Pin
rocky_pulley14-Feb-05 2:22
rocky_pulley14-Feb-05 2:22 
GeneralRe: convert PWSTR to LPCTSTR Pin
dabayi14-Feb-05 3:17
dabayi14-Feb-05 3:17 
GeneralRe: convert PWSTR to LPCTSTR Pin
Michael Dunn14-Feb-05 3:20
sitebuilderMichael Dunn14-Feb-05 3:20 
GeneralCommandBarControl.OnAction don't want to work Pin
JabraJabra12-Feb-05 22:01
JabraJabra12-Feb-05 22:01 
GeneralRe: CommandBarControl.OnAction don't want to work Pin
Jörgen Sigvardsson13-Feb-05 5:43
Jörgen Sigvardsson13-Feb-05 5:43 
GeneralRe: CommandBarControl.OnAction don't want to work Pin
JabraJabra13-Feb-05 6:14
JabraJabra13-Feb-05 6:14 
GeneralTrouble w/ Header Files Pin
SwimmerDave12-Feb-05 8:33
SwimmerDave12-Feb-05 8:33 
GeneralRe: Trouble w/ Header Files Pin
Stuart Dootson12-Feb-05 8:42
professionalStuart Dootson12-Feb-05 8:42 
GeneralRe: Trouble w/ Header Files Pin
SwimmerDave12-Feb-05 16:02
SwimmerDave12-Feb-05 16:02 
GeneralRe: Trouble w/ Header Files Pin
Stuart Dootson12-Feb-05 21:27
professionalStuart Dootson12-Feb-05 21:27 
GeneralRe: Trouble w/ Header Files Pin
Michael Dunn13-Feb-05 16:24
sitebuilderMichael Dunn13-Feb-05 16:24 
Generalexception error Pin
dabayi12-Feb-05 0:10
dabayi12-Feb-05 0:10 
GeneralRe: exception error Pin
Stuart Dootson12-Feb-05 2:33
professionalStuart Dootson12-Feb-05 2:33 
GeneralRe: exception error Pin
Tim Smith22-Feb-05 4:13
Tim Smith22-Feb-05 4:13 
GeneralCommandBarPopup not calling Exec Pin
JabraJabra11-Feb-05 23:15
JabraJabra11-Feb-05 23:15 
GeneralRFC - Duplicate file finder features Pin
Subhobroto11-Feb-05 20:41
Subhobroto11-Feb-05 20:41 

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.