Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can i use SHCloseApps in VC++? Pin
Le@rner2-Jun-09 2:55
Le@rner2-Jun-09 2:55 
QuestionCan not set affinity Thread Pin
duongcntt4b2-Jun-09 0:32
duongcntt4b2-Jun-09 0:32 
AnswerRe: Can not set affinity Thread Pin
«_Superman_»2-Jun-09 0:38
professional«_Superman_»2-Jun-09 0:38 
GeneralRe: Can not set affinity Thread Pin
duongcntt4b2-Jun-09 1:25
duongcntt4b2-Jun-09 1:25 
GeneralRe: Can not set affinity Thread Pin
«_Superman_»2-Jun-09 1:44
professional«_Superman_»2-Jun-09 1:44 
Questionvalidate xml with Xsd in C++ Pin
MrKBA2-Jun-09 0:03
MrKBA2-Jun-09 0:03 
AnswerRe: validate xml with Xsd in C++ Pin
Cedric Moonen2-Jun-09 0:16
Cedric Moonen2-Jun-09 0:16 
AnswerRe: validate xml with Xsd in C++ Pin
Stuart Dootson2-Jun-09 0:59
professionalStuart Dootson2-Jun-09 0:59 
Either libxml or msxml[^] can be used for this (although as far as I'm aware, libxml doesn't 100% cover the XSD spec - but it's probably good enough). The msxml link gives a link to example code - here's a rough run-through of loading and validating a document with libxml:

xmlDocPtr doc_ = xmlReadFile(fileName, 0, XSLT_PARSE_OPTIONS);
xmlSchemaParserCtxtPtr ctxt = xmlSchemaNewParserCtxt(schemaFileName);
xmlSchemaPtr schema = xmlSchemaParse(ctxt);
xmlSchemaFreeParserCtxt(ctxt);
xmlSchemaValidCtxtPtr context = xmlSchemaNewValidCtxt(schema);
if (0 == xmlSchemaValidateDoc(context, doc_))
{
   // Validation succeeded!!!
}
else
{
   // Validation failed!!!
}
xmlSchemaFreeValidCtxt(context);
xmlSchemaFree(schema);
xmlFreeDoc(doc_);


There's no error checking apart from the schema validation, so you would want to add that.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: validate xml with Xsd in C++ Pin
MrKBA3-Jun-09 3:00
MrKBA3-Jun-09 3:00 
GeneralRe: validate xml with Xsd in C++ Pin
Stuart Dootson3-Jun-09 3:18
professionalStuart Dootson3-Jun-09 3:18 
Questionhtlmview crashed in child dialog Pin
Bilge Kaan1-Jun-09 23:52
Bilge Kaan1-Jun-09 23:52 
AnswerRe: htlmview crashed in child dialog Pin
«_Superman_»2-Jun-09 0:14
professional«_Superman_»2-Jun-09 0:14 
GeneralRe: htlmview crashed in child dialog Pin
Bilge Kaan2-Jun-09 0:35
Bilge Kaan2-Jun-09 0:35 
Questionwindows.h Pin
agetina1-Jun-09 23:34
agetina1-Jun-09 23:34 
QuestionRe: windows.h Pin
CPallini1-Jun-09 23:40
mveCPallini1-Jun-09 23:40 
AnswerRe: windows.h Pin
Stuart Dootson1-Jun-09 23:50
professionalStuart Dootson1-Jun-09 23:50 
AnswerRe: windows.h Pin
Rajesh R Subramanian1-Jun-09 23:58
professionalRajesh R Subramanian1-Jun-09 23:58 
QuestionApproach for License Validation. Pin
mmayur1-Jun-09 23:13
mmayur1-Jun-09 23:13 
QuestionRe: Approach for License Validation. Pin
CPallini1-Jun-09 23:42
mveCPallini1-Jun-09 23:42 
QuestionReference in Arrays Pin
Anu_Bala1-Jun-09 22:57
Anu_Bala1-Jun-09 22:57 
AnswerRe: Reference in Arrays Pin
«_Superman_»1-Jun-09 23:34
professional«_Superman_»1-Jun-09 23:34 
AnswerRe: Reference in Arrays Pin
CPallini1-Jun-09 23:39
mveCPallini1-Jun-09 23:39 
GeneralRe: Reference in Arrays Pin
Anu_Bala1-Jun-09 23:47
Anu_Bala1-Jun-09 23:47 
QuestionDialogs not editable anymore Pin
MarcoNedwig1-Jun-09 21:49
MarcoNedwig1-Jun-09 21:49 
AnswerRe: Dialogs not editable anymore Pin
molesworth1-Jun-09 22:38
molesworth1-Jun-09 22:38 

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.