Generating DLL Import Source
- Updated2023-02-21
- 2 minute(s) read
This command generates source code that you can use to create a DLL import library. In general, it is not necessary to use this command. For most cases, you can generate a DLL import library directly using the Generate DLL Import Library command. Use this command only when you must perform special processing in the DLL import library. LabWindows/CVI never requires such special processing.
LabWindows/CVI enables the Generate DLL Import Source command only when you have an include file in the Source window. The include file must contain declarations of all the DLL functions you want to access. When you execute the command, a dialog box appears in which you enter the pathname of the DLL.
The Generate DLL Import Source command generates the import library source into a new Source window. You can modify the code, including making calls to functions in other source files. Create a new project that contains the source file and any other files it references. Select Build»Target Type»Static Library in the Workspace window. Execute the Build»Build command.
![]() |
Notes
|