I have create a function which able to return value for variant of variable through a LPVOID parameter function.
But some how it cannot work.
Maybe i have did wrong in some point.
Would like you to help me.
Here is my coding.
Is my way correct? if it is wrong kindly point out to me where is my mistake.
//i just cannot get the value from class A.
//these are member variable
BOOL bAssigned = TRUE;
void GetValue(CString strType, LPVOID value)
if(strType == "BOOL")
value = reinterpret_cast<BOOL*>(bAssigned);
else if(strType == "STRING")
value = string.GetBuffer(string.GetLength());