slr69
slr69
You can use a reference. Or you cannot?
Declare somewhere a XMLDocument and pass it's reference to your threads. When one of that theads needs to do something with xdoc don't forget to lock xdoc to prevent other...
There's a function "XMLUtil::SetBoolSerialization(const TCHAR* writeTrue, const TCHAR* writeFalse)". Try it.
I think better way would be: 1. set "XMLUtil::SetBoolSerialization(const char* writeTrue, const char* writeFalse)". 2. function "XMLUtil::ToBool" should consider "writeBoolTrue" and "writeBoolFalse" that were set above.
I have re-wrote "XMLUtil::ToBool" such way. bool XMLUtil::ToBool( const char* str, bool* value ) { int ival = 0; if ( ToInt( str, &ival )) { *value = (ival==0) ?...