Admin Production ni-theme
Current Publication

Creating a Dynamic Link Library

LabWindows/CVI

Creating DLLs in LabWindows/CVI

In LabWindows/CVI, you can create 32-bit and 64-bit DLLs. Along with each DLL, LabWindows/CVI creates a DLL import library for external compilers.

Note Note  You can load 32- and 64-bit DLLs only into processes with the same bitness. For example, you can load a 32-bit DLL into a 32-bit process. You cannot load a 32-bit DLL into a 64-bit process, and vice versa.

You must have a separate project for each DLL you want to create. Select Build»Target Type»Dynamic Link Library in the Workspace window. Next, you must select one of the release configuration options in the Build»Configuration submenu. Then use the Build»Build command to create a DLL suitable for distribution. You can set the name of the DLL as well as other options by selecting Build»Target Settings. DLLs created using a release configuration do not contain any debugging information and therefore cannot be debugged.

To create a DLL that you can debug, select one of the Debug options in the Build»Configuration submenu and then select Build»Build.