08-19-2010 11:04 PM
I am running a LabView executable which calls a DLL created in LabWindows/CVI. I get an error message when it tries to call PanelFunc (one of the GUI callback functions) that the dll is missing the .uri. How do I include a .uri when I create the .dll?
Thanks!
Solved! Go to Solution.
08-19-2010 11:22 PM - edited 08-19-2010 11:24 PM
Hi,
at Build / Target Settings check the mark 'Embed project UIR'
08-19-2010 11:22 PM
Sorry -- I meant to type uir not uri...
08-19-2010 11:24 PM
Thanks!
Sorry -i'm blind... I thought i looked at the target settings carefully to see if there might be such an option...
Any way, thanks!
08-21-2010 05:11 PM
i'm sorry - turns out i'm still getting the same run-time error message. and i double checked that i selected the "Embed Project .UIRs" option.
any ideas?
thanks!
08-22-2010 01:37 AM
Hi again,
in CVI you must use LoadPanelEx with a valid calling module handle to load an embedded UIR file, not the regular LoadPanel, see e.g. here.
08-22-2010 04:45 PM
Oh, yeah. I forgot about that. Thanks again!