D
dolphin
Hi,
I have the name of a local variable in a method. How can I retrieve
the type of it?
For example, in the following code fragment:
*************************************************
CString iftype, ipaddr;
int ifspeed;
port->GetAttribute("IFType", iftype);
port->GetAttribute("IFSpeed", ifspeed);
port->GetAttribute("IPAddress", ipaddr);
*************************************************
I'm expecting such a function like GetType("iftype") and it will
return "CString". Does such reflection kind of API exist?
Thanks a lot!
--dolphin
I have the name of a local variable in a method. How can I retrieve
the type of it?
For example, in the following code fragment:
*************************************************
CString iftype, ipaddr;
int ifspeed;
port->GetAttribute("IFType", iftype);
port->GetAttribute("IFSpeed", ifspeed);
port->GetAttribute("IPAddress", ipaddr);
*************************************************
I'm expecting such a function like GetType("iftype") and it will
return "CString". Does such reflection kind of API exist?
Thanks a lot!
--dolphin