Preparing Source Code for Use in a DLL
When you create a DLL, you must address the following issues that can affect your source code and include file.
- The calling convention you use to declare the functions you want to export
- How you specify which DLL functions and variables you want to export
- How you mark imported symbols in the DLL include file you distribute
This section discusses how you can address these issues when you create your DLL in LabWindows/CVI. If you create your DLL in an external compiler, the approach is very similar. External compilers, however, do not agree in all aspects. This section also discusses these differences.
Some of the information in this section is very technical and complex. This section also includes recommendations on the best approaches to these issues. These recommendations are intended to make creating the DLL as simple as possible and to make it easy to use the same source code in LabWindows/CVI and an external compiler.