03-22-2006 09:05 AM
03-23-2006 09:06 AM
I don't know how TestStand does ActiveX. In CVI, when you create a "controller" for your ActiveX server using the "Create ActiveX Controller" item in the Tools menu, CVI generates functions to handle the events exposed by the server, along with other functions to create objects in the server and call them. These event functions are in a function class called "Event Callback Registration Functions" in the generated FP, and there is a registration function for each event. You can call these functions to register a callback function to be called when the server raises the associated event. Note that CVI only supports calling ActiveX servers that only use "automation-compatible" datatypes, i.e. IDispatch compatible types. So, if your server uses any custom types like structs, etc, then CVI will probably not be able to generate a "controller" for it.
03-23-2006 09:18 AM