diff --git a/ZCppMainTest/ZtCLoadXml_000.cpp b/ZCppMainTest/ZtCLoadXml_000.cpp index 16dc2c0..52af334 100644 --- a/ZCppMainTest/ZtCLoadXml_000.cpp +++ b/ZCppMainTest/ZtCLoadXml_000.cpp @@ -13,7 +13,7 @@ namespace ZNsMain { public: - static int Main(int AI_ArgCnt=0, const char* APP_ArgVal[]=0) + static int Main(int AI_ArgCnt=0, char* APP_ArgVal[]=0) { typedef ZNsMain::ZtCStringBase ZCStringData ; @@ -100,8 +100,22 @@ namespace ZNsMain ZCViewLoadXml VO_CViewLoadXml; ZCLoadXml VO_CLoadXml ; - VO_CLoadXml.Exec(VO_CViewLoadXml, CPC_XmlData1, ZNsMain::ZftLength(CPC_XmlData1)); - VO_CLoadXml.Exec(VO_CViewLoadXml, CPC_XmlData2, ZNsMain::ZftLength(CPC_XmlData2)); + if(AI_ArgCnt<2) + { + VO_CLoadXml.Exec(VO_CViewLoadXml, CPC_XmlData1, ZNsMain::ZftLength(CPC_XmlData1)); + VO_CLoadXml.Exec(VO_CViewLoadXml, CPC_XmlData2, ZNsMain::ZftLength(CPC_XmlData2)); + } + else + { + for(int i=1; i