03-05-2009 04:40 AM
03-05-2009 05:10 AM
03-05-2009 11:04 AM
Hi Guillaume,
You're right about the missing help in PromptPopup. That was a bug that was fixed in 9.0.
As for the SetAttributeForCtrls function, it's not so much a bug as a limitation. The function does not handle non-integer attributes, and its help does state this . If you look at the implementation of the function (C:\Program Files\National Instruments\CVIxx\toolslib\toolbox.c) you'll find that it's a very simple implementation that does not handle attributes individually. Since 90% or so of attributes are integers, I guess someone still deemed sufficiently useful to include in the Programmer's Toolbox.
For now, you can still use it for the callback pointer by simply casting the pointer to an integer when you pass it to the function. But this relies on the knowledge that a pointer is a 4-byte quantity. If you ever decide that you need to build a 64-bit version of your program, then making that cast will be incorrect, and you will get a compiler warning to that effect.
Luis
03-06-2009 03:40 AM