PDA

View Full Version : Some API questions


frankt
September 25th, 2003, 05:27 PM
I've been playing around with the API and can't work out what happens when I define a variable in the name field of a button.

A normal button will have the Name text in the CCFButton.name field, but when there is a variable defined in ccf Name field, the CCFButton.name has a non-string value in the ponter. eg

Plain Text Name
+ (*button).name 0x003a80b8 "Test Action" char *

Variable Name {}
+ (*button).name 0x003a84a0 "ð„:" char *

I can see the special_type field says it's a variable button, but what is in this field? How do I access the original name value? These are the values before any attempt to set the variable has been made.

Ben S
September 25th, 2003, 09:32 PM
Hi Frank!

Just to let you know, there are some changes happening to the API using virtual classes versus a dozen exports. This will mean some changes to the work you're doing now, but it's not major. I converted 7 drivers in just under 10 minutes.

But to get back to your question.

For the special_type of variable button, the name is actually of type char ** (but cast to char *). It points at the value of the variable in braces. Unfortunately you cannot get the original name contents.

Let me know if I can further assist.