Click here to Skip to main content
15,918,742 members

Comments by Member 10395626 (Top 2 by date)

Member 10395626 14-May-16 22:57pm View    
Deleted
i wana make a module function to get anytype of parameter. then, i dont know the type of parameter. so i send a string of type.
and then i want to use the data by typecast. because i dont know the parameter type.
i use ## macro. but it makes errors.
give me tips or advices . plz.
Thx.

-------------------------------------------------
code

just sender type like this.

bool ret=m_wndPropList2.InitProperties(&m_data,_T("DATATYPE"));


just receiver doesn't know data type.
the receiver can't make a variable. the receiver knows str of the type.

bool CAttribute::InitProperties(void* data, CString str)
{


(str*)data;//like this .i want make this




Member 10395626 14-May-16 21:58pm View    
Deleted
i wana make a module function to get anytype of parameter. then, i dont know the type of parameter. so i send a string of type.
and then i want to use the data by typecast. because i dont know the parameter type.
i use ## macro. but it makes errors.
give me tips or advices . plz.
Thx.

-------------------------------------------------
code

just sender type like this.

bool ret=m_wndPropList2.InitProperties(&m_data,_T("DATATYPE"));


just receiver doesn't know data type.
the receiver can't make a variable. the receiver knows str of the type.

bool CAttribute::InitProperties(void* data, CString str)
{


(str*)data;//like this .i want make this