Click here to Skip to main content
15,913,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: typedef question Pin
theladsmith1-May-06 1:43
theladsmith1-May-06 1:43 
GeneralRe: typedef question Pin
Stephen Hewitt1-May-06 13:52
Stephen Hewitt1-May-06 13:52 
GeneralRe: typedef question Pin
theladsmith1-May-06 21:58
theladsmith1-May-06 21:58 
QuestionXML parser Pin
Imtiaz Murtaza30-Apr-06 8:08
Imtiaz Murtaza30-Apr-06 8:08 
AnswerRe: XML parser Pin
Kelly Herald30-Apr-06 9:11
Kelly Herald30-Apr-06 9:11 
AnswerRe: XML parser Pin
BEamer30-Apr-06 10:54
BEamer30-Apr-06 10:54 
GeneralRe: XML parser Pin
Steve Echols30-Apr-06 19:29
Steve Echols30-Apr-06 19:29 
AnswerRe: XML parser Pin
bob1697230-Apr-06 12:33
bob1697230-Apr-06 12:33 
Word of advice. Use the smart pointers provided by the MSXML DOM and implement it yourself. My reasoning is, it is much less painful than "RAW" C++ DOM, (still COM based but much less overhead and coding) and wrapper classes over wrapper classes will likely encourage very inefficient parsing techniques. You really need to know as much about the mechanism as possible to ensure you write the most efficient parse for your documents. You can literally build a parse that takes minutes when a proper DOM Walker will breeze through it in under a second. Some people accept poor performance only because they brute force it.

Also, some butt ugly memory leaks can ruin your accomplishments when dealing with other people's wrappers (or your own) and not fully understanding COM (specifically BSTRs, VARIANTs, and SAFEARRAYs) and the rules for managing allocated resources.

Download the MSXML 4.0 SDK and the documentation and in the html help, go to the /DOM developer's guide/"How do I?"/Program with DOM in C++ using smart pointers/Query nodes from DOM(smart) which is a very simply starting point. The DOM reference is about as good as it gets since the C++ community really never embraced XML. I think I've got the only book published for XML using C++ and it is about as worthless as they come.

Good luck
AnswerRe: XML parser Pin
Hamid_RT30-Apr-06 19:06
Hamid_RT30-Apr-06 19:06 
QuestionHow to get pidl for Quick launch? Pin
NianHawk30-Apr-06 7:14
NianHawk30-Apr-06 7:14 
QuestionHow to get frequent programs list in the Start Menu? Pin
NianHawk30-Apr-06 7:11
NianHawk30-Apr-06 7:11 
AnswerRe: How to get frequent programs list in the Start Menu? Pin
Michael Dunn30-Apr-06 19:01
sitebuilderMichael Dunn30-Apr-06 19:01 
QuestionVC6, Disable ClassView Pin
Andre xxxxxxx30-Apr-06 7:05
Andre xxxxxxx30-Apr-06 7:05 
AnswerRe: VC6, Disable ClassView Pin
Michael Dunn30-Apr-06 19:02
sitebuilderMichael Dunn30-Apr-06 19:02 
GeneralRe: VC6, Disable ClassView Pin
Andre xxxxxxx30-Apr-06 23:01
Andre xxxxxxx30-Apr-06 23:01 
Questiondownload VC++ Pin
swapna_signsin30-Apr-06 5:51
swapna_signsin30-Apr-06 5:51 
AnswerRe: download VC++ Pin
Joe Woodbury30-Apr-06 10:37
professionalJoe Woodbury30-Apr-06 10:37 
AnswerRe: download VC++ Pin
Christian Graus30-Apr-06 11:27
protectorChristian Graus30-Apr-06 11:27 
GeneralRe: download VC++ Pin
Michael Dunn30-Apr-06 19:04
sitebuilderMichael Dunn30-Apr-06 19:04 
GeneralRe: download VC++ Pin
Steve Echols30-Apr-06 19:36
Steve Echols30-Apr-06 19:36 
GeneralRe: download VC++ Pin
Maxwell Chen30-Apr-06 19:56
Maxwell Chen30-Apr-06 19:56 
Questionurgent help on randomising 10 digits and write it back in 4 digits in 4 rows... Pin
makaveli_0730-Apr-06 5:26
makaveli_0730-Apr-06 5:26 
AnswerRe: urgent help on randomising 10 digits and write it back in 4 digits in 4 rows... Pin
Maxwell Chen30-Apr-06 5:42
Maxwell Chen30-Apr-06 5:42 
GeneralRe: urgent help on randomising 10 digits and write it back in 4 digits in 4 rows... Pin
makaveli_0730-Apr-06 6:21
makaveli_0730-Apr-06 6:21 
GeneralRe: urgent help on randomising 10 digits and write it back in 4 digits in 4 rows... Pin
Justin Tay30-Apr-06 6:49
Justin Tay30-Apr-06 6:49 

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.