LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why doesn't the ActiveX server register properly?

I have created some ActiveX servers based on the same set of interfaces and objects where each one uses a different subset with some objects/interfaces available in all but each one registers a different object (and description). I'd expect to be able to specify which object gets registered as the main one but I can find no way to do this.
0 Kudos
Message 1 of 3
(2,993 Views)
Hello ljstrick,

Have you notice that it's always the same object that gets registered as a main object? Also, have you seen any other pattern in which object get registered as the main object?

Have you tried specifying your object as the top-level object for your ActiveX server. First run the Edit ActiveX Server tool from the Tools menu. Then select "Edit Objects". Select the object you would like to be the top level object, and choose "Edit". From the resulting Edit ActiveX object window, select "Advanced Options". From there, you can set your custom object as a top-level object.

Also, you can try defining your main object first from the Edit ActiveX server tool.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 3
(2,974 Views)
Hi Wendy,

I haven't noticed any real pattern with this but I haven't had more than a day to work on it including initially determining it was a problem. A CVI problem that I've run into that prevents me from debugging much more of this is that when I do an unregister server to try this, the server is still listed in DCOMCNFG and the description never gets updated if I register the new one without the currently registered interface. This means that I need to manually go into the registry and delete the proper entries, which is not something I have a tendency to do lightly. Once I verified what I was seeing in the installs in the lab would happen on my desktop I stopped going any further.

I do have the same object registered as the appobject in all the IDL files but it doesn't seem care about that. If you want I can email you the "master" project (non-functional, just an interface supplier and tester) that you can delete the different objects from to try different ways of doing it. Another factor on my side is that most of the computers I install on are on a classified network so there are tight controls as to who does what to the registry and how long I can have use of the station.

Thanks,
Lloyd
0 Kudos
Message 3 of 3
(2,968 Views)