Did you try it like following ?
SetCtrlAttribute (panel, CONTROL_ID, ATTR_CALLBACK_DATA, (void*)12345);
int i;
GetCtrlAttribute (panel, CONTROL_ID, ATTR_CALLBACK_DATA, (void**)&i);
I've often done things like that without problems.
Manfred
lorries323 schrieb in im Newsbeitrag:
50650000000800000087370000-1007855737000@exchange.ni.com...
> I have a few problems with the calbackData attribute. I know that the
> type of the callback data is a pointer to void. It is my understanding
> that this is 4 bytes. How do I store an integer value in the callback
> data instead of a pointer to another stucture. That is, can I store a
> value in the callback data without declaring a static integer variable
> and storing a pointer to the variable.
>
> t
hanks-
> Lorrie