09-29-2008 06:08 PM
Running the UI to Code Converter on my uir file generates source code which fails to compile. A sample stretch of code is...
errChk(SetCtrlAttribute (hPanel, GUI_STRIPCHART, ATTR_XLABEL_FONT, "Arial"));
errChk(SetCtrlAttribute (hPanel, GUI_STRIPCHART, ATTR_YLABEL_FONT, "Arial"));
errChk(SetCtrlAttribute (hPanel, GUI_STRIPCHART, ATTR_YLABEL_FONT (RIGHT), "Arial"));
...the third line is the one which fails with the error...
2385, 88 Found 'int' expected a function.
2385, 5 Undeclared identifier 'RIGHT'.
2385, 5 Type error in argument 3 to `SetCtrlAttribute'; found 'void' expected 'int'.
As should be apparent the third line is essentially trying to do the same thing as the second line (which is correct) for a "right" y axis (which I am not using). Is this a reported bug? Has this been fixed in a newer version of CVI?
It is easy to fix (by commenting out the offending lines) but I thought I should report the issue...
Thanks,
Trevor
09-30-2008 01:13 PM
09-30-2008 02:13 PM
HI Trevor,
This was actually fixed in CVI 8.5.1 (the bug ID is 68468, although it's not completely clear from the title that it also fixes this issue).
- Luis