How to calling GetObject() in XML?
-
Hi all! I am a new one in XML. Now I have a project which need to call GetObject() function with the syntax of JavaScript. The aim of this action is to get an object of a COM. The COM is created by myself. This COM has several interface. One of these interface is named as NetworkClass. And the COM is named as WindowsNetwork. Now I'm sure that this COM had been registed in windows correctly. I write the code as following:
var WindowsNetwork = GetObject("WindowsNetwork,NetworkClass");
But an error is return. It say that this object is undefined. The variable is invalid. I think this is because of the syntax error of GetObject(). Maybe it shouldn't be written as this if a COM have several interface. So I hope someone could be kind to tell me how to write this code. Thx! Best Regards! whiteclouds
There is some white cloud floating on the blue sky. That's the landscape I like.
-
Hi all! I am a new one in XML. Now I have a project which need to call GetObject() function with the syntax of JavaScript. The aim of this action is to get an object of a COM. The COM is created by myself. This COM has several interface. One of these interface is named as NetworkClass. And the COM is named as WindowsNetwork. Now I'm sure that this COM had been registed in windows correctly. I write the code as following:
var WindowsNetwork = GetObject("WindowsNetwork,NetworkClass");
But an error is return. It say that this object is undefined. The variable is invalid. I think this is because of the syntax error of GetObject(). Maybe it shouldn't be written as this if a COM have several interface. So I hope someone could be kind to tell me how to write this code. Thx! Best Regards! whiteclouds
There is some white cloud floating on the blue sky. That's the landscape I like.
Try with var WindowsNetwork = GetObject("WindowsNetwork.NetworkClass"); Also Refer http://www.c-point.com/javascript\_tutorial/jsfncGetObject.htm Regards Akhila
-
Try with var WindowsNetwork = GetObject("WindowsNetwork.NetworkClass"); Also Refer http://www.c-point.com/javascript\_tutorial/jsfncGetObject.htm Regards Akhila
Thx for your reply. My problem had been resolved. :-D
There is some white cloud floating on the blue sky. That's the landscape I like.