LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

include uri in dll

Solved!
Go to solution

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!

0 Kudos
Message 1 of 7
(4,070 Views)
Solution
Accepted by topic author dwon

Hi,

 

at Build / Target Settings check the mark 'Embed project UIR'

0 Kudos
Message 2 of 7
(4,068 Views)

Sorry -- I meant to type uir not uri...

0 Kudos
Message 3 of 7
(4,067 Views)

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!

0 Kudos
Message 4 of 7
(4,063 Views)

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!

0 Kudos
Message 5 of 7
(4,015 Views)

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.

0 Kudos
Message 6 of 7
(4,007 Views)

Oh, yeah. I forgot about that. Thanks again!

0 Kudos
Message 7 of 7
(3,989 Views)