Creating a CVI DLL That Contains an UIR File, And Use The DLL in Visual C++
In CVI projects, note that the cvi\include and cvi\sdk\include directories are explicitly specified in the include path. To check these directories, go to Options»Include Paths in the project window. Also, note that in the testCVI.c file you need to call LoadPanelEx function, not LoadPanel function. LoadPanelEx is similar to LoadPanel, except that the callback functions you reference in your .uir file can be defined in the DLL that contains the call to LoadPanelEx. LoadPanelEx function has an additional parameter, callingModuleHandle, where you can use the default parameter, __CVIUserHInst, to specify the handle of the module that contains the call to LoadPanelEx.
In Visual C++ projects, note that you need the .lib, .dll, .h, and .uir files for the DLL you created in CVI. Note that you do not need to include .obj for the callback table in your Visual C++ project.
Requirements
Filename: vc__.zip
Software Requirements
Application Software: LabWindows/CVI Full Development System 6.0
Language(s): C++, C
Additional Software: Visual C++ 6.0
Software Requirements
Language(s): C, C++
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/).
