CPPjiexixm
代码说明:
由于在javascript中不存在指针概念,故在xml页面调用OCX控件时,以前控件中的输出参数通过指针返回在这样的情况下行不通了,但本来就有返回参数,以及在同时有多个输出参数的情况下,依然想通过返回值返回,那就需要进行处理,然而怎么去处理呢?通过研究发现通过xml形式的字符串返回是一种解决方案,在解决这样的返回值的同时突然发现其实如果输入参数是结构体的话,也可以通过xml字符串的形式传入。然而怎么去解析它呢,而又怎么去做一个xml字符串呢,通过研究学习,以下是当然已有的解决方案。 开发环境:VS2010 (Since there is no pointer in javascript concept, so the xml page called OCX controls, the previous control output parameters returned through a pointer does not work in this case, but do have a return parameters, and there are multiple output parameters circumstances, still want to return value to return, it would need to be processed, but how to go about it? Through the study found through xml string of the form returned is a solution, the return value in addressing this while suddenly discovered that in fact if the input parameter is a structure, it can also be passed in the form of xml string. However, how to resolve it then, but how to do an xml string it through the research study, the following is of course the existing solutions. Development Environment: VS2010)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!