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

ATL / WTL / STL

 
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 
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 
I am getting a memory leak in the following lines.whats wrong?

bool CreatorObject::doesSinkSupportElement(IHTMLElement* pelem)
{
//If type is m_iidtype the nwe support element.
USES_CONVERSION;
CComBSTR bsttag;
CComVariant vartype(VT_NULL);
std::string sttype="";
std::string sttag="";


HRESULT hr;
hr=pelem->get_tagName(&bsttag);
if(FAILED(hr))
return false;

sttag=OLE2A(bsttag);

CComBSTR type(_T("type"));
hr=pelem->getAttribute(type,FALSE,&vartype);//GET TEH TYPE ATTRIBUTE OF THE ELEMENT
if(FAILED(hr))
return false;

hr=vartype.ChangeType(VT_BSTR );

if((SUCCEEDED(hr)) && (vartype.vt==VT_BSTR))
{
CComBSTR bsttype(vartype.bstrVal);
vartype.Clear();
sttype=OLE2A(bsttype);
}
....
....
}

I am gettign the memory leak in the ChangeType line.How is that to be avoided?
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 
QuestionGetting hover buttons function [modified] Pin
Prem865-Jul-06 19:26
Prem865-Jul-06 19:26 
Questioncan template specialisation replace callback? Pin
f25-Jul-06 7:26
f25-Jul-06 7:26 
QuestionHow to use "fprintf" and "sprintf" in ATL dll creation. Pin
agarunk4-Jul-06 23:29
agarunk4-Jul-06 23:29 
AnswerRe: How to use "fprintf" and "sprintf" in ATL dll creation. Pin
Jörgen Sigvardsson4-Jul-06 23:44
Jörgen Sigvardsson4-Jul-06 23:44 
GeneralRe: How to use "fprintf" and "sprintf" in ATL dll creation. Pin
agarunk5-Jul-06 19:23
agarunk5-Jul-06 19:23 

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.