LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with LoadPanelEx, when creating dll

Hi!
Im really a noobie here, and im trying to learn LabWindows.
But now i got a problem that I dont understand..

I've created a dll, which should load a .uir.
and when i compile it it doesnt complain, but when i call it from another program i get this error:

NON-FATAL RUN-TIME ERROR: "..." : Library function error (return value==-24 [0xffffffe8]) Resource ID not found in user interface resource file

and when i look at the line, in the .c-file, whicch i created the dll from, the line is:
LoadPanelEx(0,"8_3.uir", panelHandle, __CVIUserHInst)

the strange thing is that the Resource ID is panelHandle, so i don't understand why i got the error!


I guess this is not enough with information for you to help me, but i don't know what i should post!
But if anyone got any idea, plz post!


/daniel
0 Kudos
Message 1 of 3
(3,740 Views)
Hi Daniel,
 
It's very unlikely that 'panelHandle' really is the resource id. To find out what the resource id is, open the .uir in the editor, double-click on the panel that you want to load, and look at the value for the Constant Name near the top-left corner of the Edit Panel dialog. It is that value string that you have to pass to LoadPanelEx.
 
Luis
0 Kudos
Message 2 of 3
(3,731 Views)
O thank you!
Totally my mistake..
But thankyou for reminding me, i don't know what i was thinking of..
0 Kudos
Message 3 of 3
(3,724 Views)