Download LabWindows/CVI User Interface Reference Manual
Transcript
Chapter 4 User Interface Library Reference callingModuleHandle void pointer Usually, the module handle of the calling DLL. You can use __CVIUserHInst. Zero indicates the project or executable. integer The value you can use in subsequent function calls to specify this panel. Negative values indicate that an error occurred. Refer to Appendix A for error codes. Return Value panelHandle Using this Function Refer to the function help for LoadPanel for detailed information on that function. When you call LoadPanel, the User Interface Library attempts to find the callback functions referenced in the .uir file. It searches the symbols defined in the project or in object, library, or DLL import library modules that have been loaded using LoadExternalModule. It does not search symbols that are defined in a DLL but not exported in the DLL import library. You may want a DLL to load a panel and link to callback functions defined in (but not exported from) the DLL. You can do this by calling LoadPanelEx. You must specify the module handle of the DLL in the callingModuleHandle parameter. You can do this by using the predefined variable __CVIUserHInst. (If you pass zero for the callingModuleHandle, the function behaves identically to LoadPanel.) LoadPanelEx first searches the DLL symbols to find the callback functions referenced in the .uir. If there are any callback functions that it cannot find, it then searches for them in the same manner as LoadPanel. LoadPanelEx expects the DLL to contain a table of the callback functions referenced by the .uir files loaded by the DLL. If you create the DLL in LabWindows/CVI, the table is included automatically. If you create the DLL using an external compiler, you must arrange for this table to be included in the DLL. You can do this by using the External Compiler Support command in the Build menu of the Project window. You must have a LabWindows/CVI project that lists all of the .uir files loaded by the DLL. In the External Compiler Support dialog box, specify the name of an object file to contain the table of callback function names. Then click on the Create button to create the object file. You must include the object file in the external compiler project you use to create the DLL. The External Compiler Support information is contained in the LabWindows/CVI project file. If that project file is loaded and you modify and save any of the .uir files, LabWindows/CVI automatically regenerates the object file. © National Instruments Corporation 4-145 LabWindows/CVI User Interface Reference
Related documents
LabWindows/CVI User Interface Reference Manual
AxoGraph X Data Acquisition Manual
How to Use Asynchronous Callback Functions with GPIB Events for
Thesis by Brian C. Keeney - SCIPP - University of California, Santa
ProLase for Windows Users Manual
DSP Based Electric Drives Laboratory - HCMUT
LabWindows/CVI User Manual
Further Faces 1 Music 1.1 Dunne and Jiirgensen
User Manual
CHAPTER 5 — FLIGHT PLAN SETUP
The author of this thesis has granted the University of Calgary a non
METAPOST: terminally ill or just playing dead?