Download LabWindows/CVI Programmer Reference Manual
Transcript
Chapter 4 Creating and Distributing Standalone Executables and DLLs Distribution Kit feature in LabWindows/CVI allows you to include this installation in a distribution kit. • DataSocket Automation Server and Utilities—This server and its associated utilities are required if your program uses the functions in the CVI DataSocket Library. An installation program, included in the cvi/redist/datasocket directory of your CVI installation, must be used to install this automation server on your target machines. The Create Distribution Kit feature in LabWindows/CVI allows you to include this installation in a distribution kit. More information on this feature is available in the Create Distribution Kit section of Chapter 3, Project Window, of the LabWindows/CVI User Manual. • .uir files—The User Interface Resource files that your application program uses. Use LoadPanel and LoadMenuBar to load these files. • Image files—The graphical image files that you programmatically load and display on your user interface using DisplayImageFile. • State files—The user interface panel state files that you save using SavePanelState and load using RecallPanelState. • DLL files—(Windows Only) the Windows Dynamic Link Library files that your application program uses. • External .lib files—Compiled 32-bit .lib files that you load using LoadExternalModule and that you have not listed in the project. • External .obj files—Compiled 32-bit .obj files that you load using LoadExternalModule and that you have not listed in the project. • Other files—Files your executable opens using open, fopen, OpenFile, and so on. Necessary Files for Using DLLs You can distribute DLLs that use the LabWindows/CVI Run-time Engine. As in the case of standalone executables, you must distribute them along with the LabWindows/CVI Run-time Engine. Location of Files on the Target Machine for Running Executables and DLLs To assure proper execution, it is critical that all files associated with your executable program are in the proper directories on the target machine. On the PC, you specify these files in a relative directory structure in the dialog box that appears when you select Build»Create Distribution Kit from the Build menu of the Project window in LabWindows/CVI. Refer to the Build Menu section of Chapter 3, Project Window, of the © National Instruments Corporation 4-5 LabWindows/CVI Programmer Reference Manual