Click here to Skip to main content
15,923,051 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Problem with WTL Pin
User 98858-Jan-03 10:14
User 98858-Jan-03 10:14 
GeneralWTL: a newbie question Pin
Shah Shehpori5-Jan-03 18:41
sussShah Shehpori5-Jan-03 18:41 
GeneralRe: WTL: a newbie question Pin
Jörgen Sigvardsson17-Jan-03 12:29
Jörgen Sigvardsson17-Jan-03 12:29 
GeneralCRegKey QueryStringValue Pin
rbeckett5-Jan-03 17:01
rbeckett5-Jan-03 17:01 
GeneralRe: CRegKey QueryStringValue Pin
Michael Dunn5-Jan-03 17:24
sitebuilderMichael Dunn5-Jan-03 17:24 
GeneralGreat! Works Perfectly! Pin
rbeckett5-Jan-03 17:41
rbeckett5-Jan-03 17:41 
QuestionHow do I create Different view derived class ? Pin
Jose Cruz3-Jan-03 6:45
Jose Cruz3-Jan-03 6:45 
GeneralRegarding memory Pin
suresh_sathya1-Jan-03 20:14
suresh_sathya1-Jan-03 20:14 
Hi
I wrote the code to parse xml.I used smart pointers.i want to know wheather my code is correct.As i used smart pointers, i think no need to call release.But iam not sure about that wheni go through loop.Any suggestions would help me to do better.



IXMLDOMDocumentPtr docPtr;
IXMLDOMNodeListPtr NodeListPtr,NodeListPtr1;
IXMLDOMNodePtr DOMNodePtr,NextItemPtr,NextItemPtr1;
IXMLDOMNamedNodeMapPtr NamedNodeMapPtr;
docPtr.CreateInstance(_T("msxml2.domdocument"));



for(int i=0;i < NodeListPtr->length;i++)
{

NodeListPtr->get_item(i,&NextItemPtr);
NodeListPtr1=NextItemPtr->childNodes;
for(int k=0;k<nodelistptr1->length;k++)
{
NodeListPtr1->get_item(k,&NextItemPtr1);
if(strcmp(NextItemPtr1->nodeName,"IMAGE")==0 || strcmp(NextItemPtr1->nodeName,"HOTIMAGE")==0)
{

strcat(destpath,"\\");
strcpy(fullpath,NextItemPtr1->text);
ReturnFileName(fullpath,XmlFileAppPath);
strcat(destpath,XmlFileAppPath);
//MessageBox(NULL,destpath,"Value",MB_OK);
DownloadFile(NextItemPtr1->text,destpath);
strcpy(destpath,"");

}

}

}

NodeListPtr=NULL;
DOMNodePtr=NULL;
docPtr=NULL;
NextItemPtr1=NULL;
NextItemPtr=NULL;
NodeListPtr1=NULL
GeneralRe: Regarding memory Pin
AlexO2-Jan-03 3:10
AlexO2-Jan-03 3:10 
GeneralRe: Regarding memory Pin
Anders Molin3-Jan-03 14:02
professionalAnders Molin3-Jan-03 14:02 
Generalheeeeeeeeelllllp!!!!!!!!!!! Pin
xxhimanshu30-Dec-02 22:48
xxhimanshu30-Dec-02 22:48 
GeneralRe: heeeeeeeeelllllp!!!!!!!!!!! Pin
Anders Molin3-Jan-03 13:59
professionalAnders Molin3-Jan-03 13:59 
QuestionHow to using the second IDispatch of a COM object in VBScript Pin
bojinyu30-Dec-02 0:08
bojinyu30-Dec-02 0:08 
AnswerRe: How to using the second IDispatch of a COM object in VBScript Pin
30-Dec-02 3:26
suss30-Dec-02 3:26 
AnswerRe: How to using the second IDispatch of a COM object in VBScript Pin
pba_30-Dec-02 4:20
pba_30-Dec-02 4:20 
GeneralRe: How to using the second IDispatch of a COM object in VBScript Pin
bojinyu30-Dec-02 14:07
bojinyu30-Dec-02 14:07 
GeneralRe: How to using the second IDispatch of a COM object in VBScript Pin
pba_2-Jan-03 4:39
pba_2-Jan-03 4:39 
GeneralATL & OLE Pin
Paul Silvernail27-Dec-02 17:51
Paul Silvernail27-Dec-02 17:51 
GeneralRe: ATL & OLE Pin
AlexO30-Dec-02 3:58
AlexO30-Dec-02 3:58 
GeneralRe: ATL & OLE Pin
Jörgen Sigvardsson17-Jan-03 12:31
Jörgen Sigvardsson17-Jan-03 12:31 
GeneralProblem with ConnectionPoints... Pin
Anders Molin27-Dec-02 15:16
professionalAnders Molin27-Dec-02 15:16 
GeneralRe: Problem with ConnectionPoints... Pin
Michael Dunn27-Dec-02 18:36
sitebuilderMichael Dunn27-Dec-02 18:36 
GeneralRe: Problem with ConnectionPoints... Pin
Anders Molin28-Dec-02 0:22
professionalAnders Molin28-Dec-02 0:22 
GeneralRe: Problem with ConnectionPoints... Pin
Vi230-Dec-02 1:24
Vi230-Dec-02 1:24 
GeneralCAxDialogImpl<> questions Pin
Paul Silvernail27-Dec-02 14:25
Paul Silvernail27-Dec-02 14:25 

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.