Admin Production ni-theme
Current Publication

Editing an ActiveX Argument

LabWindows/CVI

Edit ActiveX Server Wizard — Edit ActiveX Argument Panel

Use the Edit ActiveX Argument dialog box to edit an argument of your ActiveX method. You can set the following options:

  • Name—The name of your argument. Ensure that the argument name is a valid C identifier and is less than 112 ASCII characters in length.
  • Treat argument as logical return value for clients—Select this option to treat the argument as your method's logical return value by ActiveX clients. Treating the argument as the logical return value causes the retval IDL attribute to be specified for your argument. You can have only one return value argument for a method. A return value argument must be an output argument and must be the last argument of the method.
  • Argument Direction—The data direction that fully specifies the argument's type. Input parameters send data from the client to the server while output parameters return data from the server to the client. The Output and Input/Output items imply references to the specified type. National Instruments recommends not using the Input/Output item with array types for efficiency reasons. You must use the LabWindows/CVI ActiveX library memory allocation and freeing functions to allocate and free Output and Input/Output parameters.
  • Argument Dimension—A dimension that fully specifies the argument's type. This tool does not support arrays of interface pointers, including IUnknown* and IDispatch*.
  • Argument Type—The automation type of the argument. If your argument is an interface pointer other than IUnknown* or IDispatch*, you can enter the name of the interface to add the name to the list.