Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Exporting Variables and Functions from a DLL in LabWindows/CVI

4 ratings | 3.00 out of 5
Print

Downloads

Filename: export.zip
Requirements: View

This example shows how to apply the correct import and export qualifiers for variables and functions defined in a DLL and used in an external application. For exporting, notice the use of the DLLEXPORT macro; for importing a variable, notice the use of the DLLIMPORT macro. These macros are defined in cvidef.h and help you identify the correct qualifiers for your compiler.

This example program contains two projects: export.prj contains the source for the DLL and useexport.prj uses the DLL. Look at both to understand the complete implications of exporting and importing a variable and using a function defined in a DLL.

Requirements


Filename: export.zip

Software Requirements


Application Software: LabWindows/CVI Full Development System 6.0, LabWindows/CVI Full Development System 5.5.1
Language(s): C

 
4 ratings | 3.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).