Click here to Skip to main content
15,905,148 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get the original size of a pe file Pin
white jungle22-Mar-07 23:18
white jungle22-Mar-07 23:18 
GeneralRe: How to get the original size of a pe file Pin
Karismatic23-Mar-07 0:22
Karismatic23-Mar-07 0:22 
GeneralRe: How to get the original size of a pe file Pin
white jungle23-Mar-07 0:33
white jungle23-Mar-07 0:33 
QuestionProblem Putting Dialog on top Pin
ghunzel0622-Mar-07 16:15
ghunzel0622-Mar-07 16:15 
AnswerRe: Problem Putting Dialog on top Pin
prasad_som22-Mar-07 18:28
prasad_som22-Mar-07 18:28 
GeneralRe: Problem Putting Dialog on top Pin
ghunzel0622-Mar-07 19:27
ghunzel0622-Mar-07 19:27 
GeneralRe: Problem Putting Dialog on top Pin
DLChambers23-Mar-07 16:04
DLChambers23-Mar-07 16:04 
QuestionFinding Duplicate attribute values in a XML doc Pin
sujanaz22-Mar-07 15:35
sujanaz22-Mar-07 15:35 
Hello There,

This is my first post..so bear with me if I am bad at explanation!I am not able to solve this n need immediately for project..so.. Frown | :-(

I need to Load some data from XML document into ComboBox,but I want to error out if I have duplicate data.

Ex:-
<Employees>
<Employee Name"AAA">
<ID>1<ID/>
<Employee>
<Employee Name"ABC">
<ID>2<ID/>
<ID>2<ID/>
<Employee>
<Employee Name"AAA">
<ID>1<ID/>
<Employee>
<Employees/>
Here I need to load comboBox1 with AAA and ABC and show up error that there is Duplicate entry for an Employee NAme="AAA".
I need to load second Combo Box with ID's.And Error out if there are duplicate entries for this.
I ran an Xpath Query
CString strQuery ("//Employees/Employee");
_bstr_t QueryString;
QueryString = strQuery.AllocSysString();
CString strName ("name");
_bstr_t name;
name = strName.AllocSysString();

HRESULT hr15 = m_pXMLDocClassLevelDoc->selectNodes(QueryString,&pNodeListPtr);
then in the for loop I do get_item & get_attribute and get the data in BSTR.

For loading the 2nd ComboBox I run another query with
strQuery.Format("//Employees/Employee[@ID='%s']",strdata1); where strdata1 is selected Employee name in Combo Box1(did it in OnComboSelChange Event).

So I need to show error in MEssageBox with what is duplicated in the XMLDoc.Example here is "AAA"- Employee name or ID= 2.

Please help me on this.

Thanks.

QuestionAny thing wrong in this peace of code? Pin
G Haranadh22-Mar-07 14:17
G Haranadh22-Mar-07 14:17 
AnswerRe: Any thing wrong in this peace of code? Pin
PJ Arends22-Mar-07 16:03
professionalPJ Arends22-Mar-07 16:03 
QuestionRe: Any thing wrong in this peace of code? Pin
prasad_som22-Mar-07 18:31
prasad_som22-Mar-07 18:31 
AnswerRe: Any thing wrong in this peace of code? Pin
G Haranadh23-Mar-07 6:33
G Haranadh23-Mar-07 6:33 
AnswerRe: Any thing wrong in this peace of code? Pin
John R. Shaw22-Mar-07 21:40
John R. Shaw22-Mar-07 21:40 
AnswerRe: Any thing wrong in this peace of code? Pin
G Haranadh23-Mar-07 6:25
G Haranadh23-Mar-07 6:25 
QuestionRuns in VS 2005, not in command window Pin
rmw25622-Mar-07 13:48
rmw25622-Mar-07 13:48 
AnswerRe: Runs in VS 2005, not in command window Pin
cp987622-Mar-07 15:55
cp987622-Mar-07 15:55 
GeneralRe: Runs in VS 2005, not in command window Pin
rmw25622-Mar-07 16:09
rmw25622-Mar-07 16:09 
GeneralRe: Runs in VS 2005, not in command window Pin
cp987622-Mar-07 16:21
cp987622-Mar-07 16:21 
QuestionHow to disable check box in CTreeCtrl control sub item? Pin
Yanshof22-Mar-07 12:13
Yanshof22-Mar-07 12:13 
AnswerRe: How to disable check box in CTreeCtrl control sub item? Pin
toxcct22-Mar-07 12:27
toxcct22-Mar-07 12:27 
Questionmsscript.ocx probelm? Pin
falsevapor22-Mar-07 11:31
falsevapor22-Mar-07 11:31 
QuestionDigitizing w/ DirectShow in Visual C++ Pin
BlackWilson22-Mar-07 10:50
BlackWilson22-Mar-07 10:50 
AnswerRe: Digitizing w/ DirectShow in Visual C++ Pin
Mark Salsbery22-Mar-07 11:23
Mark Salsbery22-Mar-07 11:23 
AnswerRe: font problem with CreateWindow Pin
Michael Dunn22-Mar-07 10:33
sitebuilderMichael Dunn22-Mar-07 10:33 
GeneralRe: font problem with CreateWindow [modified] Pin
shaderx22-Mar-07 10:41
shaderx22-Mar-07 10: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.