Hi Friends,
Is there any method to find the number of structure members in a given structure.
And is there any method to check whether a structure member is int or char or string.
Regards,
Bhaskar Reddy.
Hi Friends,
Is there any method to find the number of structure members in a given structure.
And is there any method to check whether a structure member is int or char or string.
Regards,
Bhaskar Reddy.
Why do you need to do this introspection?
Hi LaserLight,
In my project, i want to receive a struct, and find out how many number of members are there and their types. based on the type i have to call appropriate API to insert that value into a table.
Regards,
Bhaskar Reddy.
Could you embed some kind of type information as a member of the struct?
Might you have the option of doing this in C++? While it's still not easy or widely scalable, it's certainly easier... much easier.