LabWindows/CVI

Linking to Callback Functions Not Exported from a DLL

Normally, the User Interface Library searches for callback functions only in the table of functions in the executable. When you load a panel or menu bar from a DLL, you might want to link to non-static callback functions that the DLL contains but does not export. You can do this by calling LoadPanelEx and LoadMenuBarEx. When you pass the DLL module handle to LoadPanelEx and LoadMenuBarEx, the User Interface Library searches the table of callback functions the DLL contains before searching the table that the executable contains.

If you create your DLL in LabWindows/CVI, LabWindows/CVI includes the table of functions in the DLL automatically. If you create your DLL using an external compiler, you must generate a source file that contains the necessary table as described in Resolving Callback References from .uir Files.