PDA

View Full Version : Can I display a expression using a build_struct_transform ?



Philippe
06-24-2008, 08:23 AM
I would like to display a expression using a build_struct_transform.

example: I have a struct with 2 pointers. (beg and end). The size is calculated by (m_End - m_Begin)
Is there a why to evaluate the expression and display it ?

I've try this way but that does not work.




::TV::TTF::RTF::build_struct_transform {
name {^struct TME::Text$}
members {
{ size { m_End - m_Begin } }
}
}


I've also tried to call the function which is a member of the struct



::TV::TTF::RTF::build_struct_transform {
name {^struct TME::Text$}
members {
{ size { size() } }
}
}


But I'm probably doing something wrong.

Thanks Phil