Admin Production ni-theme
Current Publication

Specifying ActiveX Server Settings

LabWindows/CVI

Create ActiveX Server Wizard — Server Settings Panel

You can use this dialog box to specify the following ActiveX server settings:

  • Server Name—The name of the ActiveX server. Ensure that the server name is a valid C identifier and is less than 20 ASCII characters in length. The server name is used in the type library and generated code to identify the server.
  • Type—Select whether the server is a DLL (in process) or an EXE (out of process).
  • Help File—The filename of the server help file. This file must be in the same folder as the server. LabWindows/CVI stores the filename in the server type library. By default, no help file is specified. The generated type library makes the help content available to programming environments and browsers whose providers want to document the servers for their users.
  • Help Context—If you specified a help file for your server, enter the context ID for this server's help information. LabWindows/CVI stores the context ID in the server type library.
  • Help String—The help string for this server. LabWindows/CVI stores the help string in the server type library.
  • Import from Function Tree (.fp file)—Select this option to create server interfaces and objects based on a function panel file. LabWindows/CVI imports the classes and functions of a function tree file into the server. LabWindows/CVI imports each class in the function tree as an interface composed of the functions that belong to that class. Top-level functions in the function tree are imported into a default top-level interface with the same name as the function tree. For example, class A contains subclass B. In the interface representing class A, LabWindows/CVI generates an additional method that returns the interface representing class B. LabWindows/CVI generates one object to implement each interface. An object is a top-level object if and only if it represents a top-level class. The imported function tree file must have an associated header file in the same directory.
  • FP File Path—The full path of the function tree file to import. The associated function panel header file must be present in the same directory as the function tree file.
  • Advanced Options—Opens the Server Advanced Options Panel, in which you can specify advanced settings for your server.

When you click Next in the Server Settings panel, the Create ActiveX Server Wizard converts the current LabWindows/CVI project to an ActiveX server project. You cannot reverse this conversion.

Once you specify the settings in the Target Files, Server Settings, and Server Advanced Options panels, the wizard creates the target files and adds them to the project. The target files are empty because you have not specified the ActiveX interfaces and objects. After the Create ActiveX Server Wizard finishes, LabWindows/CVI opens the Edit ActiveX Server tool, which you can use to specify the ActiveX interfaces and objects to implement in the server.

For more information, refer to Building ActiveX Servers in LabWindows/CVI book, which describes the LabWindows/CVI ActiveX server tools and functions in more detail and contains sample code fragments and hints for server development.