Chapter 8 Utility Library
© National Instruments Corporation 8-49 LabWindows/CVI Standard Libraries
LoadExternalModuleint module_id = LoadExternalModule (char pathName[]);
Purpose
Loads a file containing one or more object modules.
Parameter
Input pathName string Relative or absolute pathname
of the module to be loaded.
Return Value
module_id integer ID of the loaded module.
Return Codes
-1 Out of memory.
-2 File not found.
-4 Invalid file format.
-6 Invalid path name.
-7 Unknown file extension.
-8 Cannot open file.
-11 .PTH file open error.
-12 .PTH file read error.
-13 .PTH file invalid contents.
-14 DLL header file contains a static function prototype.
-15 DLL function has an unsupported argument type.
-16 DLL has a variable argument function.
-17 DLL header contains a function without a proper prototype.
-18 DLL function has an unsupported return type.
-19 A DLL function’s argument or return type is a function pointer.
-20 A function in the DLL header file was not found in the DLL.
(continues)