请教一个线程中操作Xml的问题
请教一下,我在线程中打开一个Xml,并读取Xml文件,发现LoadFromFile的时候,老报错
1. 创建线程:
hTest = CreateThread(NULL,0,Test_Thread,this,0,0);
DWORD WINAPI COMRecvHandler_Thread(LPVOID lParam)
{
_di_IXMLNode pNode;
TXMLDocument *XmlDoc = new TXMLDocument(Application);
XmlDoc->LoadFromFile("test.xml");
pNode = XmlDoc->DocumentElement;
pNode = ReadProgramNodeFromXml(pNode ,sID);
.............
}