LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in UI to Code Converter

Sorry for being so rude to you. In my opinion "turning off the warnings" doesn't solve the problem and fixing the code myself either. The user interface converter should be fixed to produce "warning-free" code. I do not have the time fixing the warnings myself each time i change a uir file.

🙂
0 Kudos
Message 11 of 15
(1,625 Views)
nakrul schrieb:
> I am converting the uir files because i am compiling my project with
Microsoft Visual C++ .NET 2003.
You can add the uir files as resources to your project and compile them
into your executable. If you want a "how to" I can explain it.

Babak

0 Kudos
Message 12 of 15
(1,605 Views)
If it is possible to add user interface files as resources i would be very interested in how to do it.

Nakrul
0 Kudos
Message 13 of 15
(1,602 Views)
nakrul schrieb:
> If it is possible to add user interface files as resources
> i would be very interested in how to do it.

There is an VC++(7.1) project attached which demonstrate this possibility.


The only additional thing what you have to know is how to add the uir
file to the resource:

- Resource View
-> right click on the project -> Add -> Add Resource -> Import
-> select UIR-File -> resource type: >>UIRFILETYPE<<

-> select the new added icon (something like IDR_UIRFILETYPE)
rename the ID to the file Name in the Proporties view
(IDR_UIRFILETYPE -> "UIR_TST.UIR" in the example). The filename
should be surrounded by quotation marks.



For additional information read the help to "LoadPanelEx" specially all
things concerning "Embed Project .UIRs".

This works with CVI7.0 and upper. There is one problem in CVI7.0
"LoadMenuBarEx" could not load from the resource.

Babak

0 Kudos
Message 14 of 15
(1,578 Views)
This is the best way to integrate user interface files into a Visual C project. Now I am able to change a user interface file without converting it to c-code. I just need to recompile my Visual C project and the resources are updated.

Thanks a lot 🙂

Nakrul
0 Kudos
Message 15 of 15
(1,567 Views)