LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Will ActiveX server exe support remote method calls?

I've built an ActiveX automation server in CVI 6.0 on W2K. I want to access this server remotely through a network via the IE explorer web browser.

The web page used VBSCRIPT to make calls to the activeX objects. I haven't yet been able to invoke the server remotely. I have defined "Dual interfaces" in the activex server in order for VBscript to access the activex methods/objects.

The server does work when its on the same machine as the client browser.

Will the activex server support remote calls, and do I need to do anything special at the the W2K server?
0 Kudos
Message 1 of 4
(3,271 Views)
ActiveX servers support remote access via DCOM. CVI server projects are the same. It may be that you have not setup your DCOM settings to allow remote launching of the CVI EXE process on the remote system. DCOM setup can be done by running DCOMCNFG.EXE on your system.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(3,271 Views)
Chris,

While checking into this, I've noticed that my activex server object name doesn't show up in either OLEVIEW. In DCOMCNFG, it only appears by its CLASSID tag, and not by name.

When I checked the registry, I found the "(default)" entry is not set for my server object name in HKEY_CLASSES_ROOT.

I compared this with other registered actvex objects and found they do have (default) entries set, and this is what appears in OLEVIEW.

I did name the server, object,and methods using the create activex server tool when i built the project.

How do I get the name to properly register in the registry(besides manually editing the registry)? Is there someplace I need to populate this information in the tool or my server project that I may have missed?
0 Kudos
Message 3 of 4
(3,271 Views)
The server name should NOT show up in DCOM. What should show up is the top level objects in your server. For example, Microsoft Excel 9.0 Object Library does NOT show up, but Microsoft Excel Application does. Look for the top-level objects you defined in your server. The string that shows up for your objects in DCOM and other places is the Object Description. Open the cvi\samples\activex\servers\simpleEXE example and build it. Notice that in DCOM you will see the top-level object of this server ("Object that performs simple scalar, string and vector calculations") listed.

Hope that helps.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 4 of 4
(3,271 Views)