Accessing any structs members at run-time.

Posted by jmgunn on Stack Overflow See other posts from Stack Overflow or by jmgunn
Published on 2010-04-08T00:08:47Z Indexed on 2010/04/08 0:13 UTC
Read the original article Hit count: 194

Filed under:
|
|
|
|

Is it possible to get access to an individual member of a struct or class without knowing the names of its member variables? I would like to do an "offsetof(struct, tyname)" without having the struct name or member variable name hard coded amoungst other things. thanks.

© Stack Overflow or respective owner

Related posts about c

    Related posts about c++