Click here to Skip to main content
15,890,506 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Urgent:memory leak in recursion with CComPtr Pin
Stephen Hewitt11-Jul-06 2:40
Stephen Hewitt11-Jul-06 2:40 
QuestionGet Frame window Handle Pin
HakunaMatada10-Jul-06 17:58
HakunaMatada10-Jul-06 17:58 
AnswerRe: Get Frame window Handle Pin
Arman S.11-Jul-06 3:01
Arman S.11-Jul-06 3:01 
GeneralRe: Get Frame window Handle Pin
HakunaMatada11-Jul-06 3:25
HakunaMatada11-Jul-06 3:25 
GeneralRe: Get Frame window Handle Pin
Arman S.11-Jul-06 3:57
Arman S.11-Jul-06 3:57 
QuestionHow do I do this ? [modified] Pin
Smith#10-Jul-06 2:49
Smith#10-Jul-06 2:49 
AnswerRe: How do I do this ? Pin
Kurt _B12-Jul-06 5:42
Kurt _B12-Jul-06 5:42 
AnswerRe: How do I do this ? Pin
Pharago16-Jul-06 0:29
Pharago16-Jul-06 0:29 
Hi, you have variuos options in this case, you can try and use some kind of collection enumeration based on the variant safearrays to try to please com clients like VB, or you can use the raw and simply way of having a property that inputs an index and returns the value in the array.

Something like:
idl:
HRESULT get_CollectionItemName([in]long Index,[out,retval]BSTR* pVal);
ClassName.cpp
STDMETHODIMP ClassName::get_CollectionItemName(long Index,BSTR* pVal)
{
lookup vector or container using index
copy item or item member on return value *pVal
return S_OK;
}

This method is fairly simple of implement, you don't need to get very involved in com specific code, and you can use simple datatypes and the kind of array of your choice.
QuestionHow to create dropdown style button using TBSTYLE_DROPDOWN Pin
shivditya10-Jul-06 1:48
shivditya10-Jul-06 1:48 
QuestionWhat Design Pattern does ATL/COM is based upon Pin
Balkrishna Talele10-Jul-06 1:40
Balkrishna Talele10-Jul-06 1:40 
AnswerRe: What Design Pattern does ATL/COM is based upon Pin
shivditya10-Jul-06 2:06
shivditya10-Jul-06 2:06 
AnswerRe: What Design Pattern does ATL/COM is based upon Pin
ThatsAlok10-Jul-06 23:25
ThatsAlok10-Jul-06 23:25 
QuestionMemory leak in CComVariant changetype Pin
rana749-Jul-06 20:59
rana749-Jul-06 20:59 
QuestionGraceful thread exit Pin
rana746-Jul-06 21:03
rana746-Jul-06 21:03 
AnswerRe: Graceful thread exit Pin
Arman S.11-Jul-06 3:08
Arman S.11-Jul-06 3:08 
QuestionHTTP Auth Intercept/Password Form Processing using IE Pin
harningt6-Jul-06 7:26
harningt6-Jul-06 7:26 
QuestionSTD::String replace Pin
snir_ya6-Jul-06 6:38
snir_ya6-Jul-06 6:38 
AnswerRe: STD::String replace Pin
Igor Vigdorchik6-Jul-06 8:38
Igor Vigdorchik6-Jul-06 8:38 
AnswerRe: STD::String replace Pin
Roland Pibinger7-Jul-06 12:21
Roland Pibinger7-Jul-06 12:21 
AnswerRe: STD::String replace Pin
Stuart Dootson6-Jul-06 22:01
professionalStuart Dootson6-Jul-06 22:01 
AnswerRe: STD::String replace Pin
Roland Pibinger7-Jul-06 12:30
Roland Pibinger7-Jul-06 12:30 
QuestionHow to implement WTL Pin
shivditya6-Jul-06 0:48
shivditya6-Jul-06 0:48 
AnswerRe: How to implement WTL Pin
Justin Tay6-Jul-06 3:52
Justin Tay6-Jul-06 3:52 
QuestionAdd toolbar to IExplorer Pin
HarishDixit5-Jul-06 23:31
HarishDixit5-Jul-06 23:31 
AnswerRe: Add toolbar to IExplorer Pin
shivditya6-Jul-06 0:41
shivditya6-Jul-06 0: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.