This tutorial walks you through the process of automating a lot of the effort involved in calling C/C++ DLLs by using the Import Shared Library Wizard. This wizard creates wrapper VIs with pre-configured Call Library Function Nodes that you can call from your VIs.
For more details on the options in the Import Shared Library Wizard, refer to:
LabVIEW Help: Using the Import Shared Library Wizard
The attached sample DLL, PassingDataSampleDLL.dll, contains multiple functions with different types of parameters and return types, ranging from integers, arrays and strings to pointers and structs (clusters).
You have learned how to call automatically create wrapper VIs for functions in a C/C++ DLL using the Import Shared Library Wizard.
You can also configure the inputs and outputs of these functions as well as the calling options in the Configure VIs and Controls step, or by manually changing the configuration of the Call Library Function Nodes in the individual VIs. This is particularly useful for functions that return arrays, pointers and structs.
The Import Shared Library Wizard does not handle certain cases automatically, like functions that return structs, and arrays that are referenced as pointers in the function header. For examples on how to handle these cases, refer to:
Calling C/C++ DLLs Containing Simple and Complex Datatypes from LabVIEW