LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LoadPanelEx error -94 when dll called from TestStand

Solved!
Go to solution

Calling my LabWindows/CVI DLL from Teststand

I am getting Error -94 File not found from

panelHandle = LoadPanelEx(0, "Some.uir", PANEL, 0)

Target setting "Embed project .UIRs" is checked on the DLL project

If I step through the code within LabWindows/CVI I do not get the error

If I operate the DLL through a CVI executable application, I also do not get the error

The panel does not require user interraction.

Any Ideas?

 

0 Kudos
Message 1 of 2
(2,439 Views)
Solution
Accepted by topic author krugman3

Swapped

panelHandle = LoadPanelEx(0, "Some.uir", PANEL, 0)

for

panelHandle = LoadPanelEx(0, "Some.uir", PANEL, __CVIUserHInst)

Now appears to be OK.

0 Kudos
Message 2 of 2
(2,408 Views)