Hello there, I would just like ask what to use if you want to know if a variable is of type wchar_t* or char* using it in a flow control statement.
Would this work?
void Check(void* pVarToCheck){
if(sizeof(pVarToCheck) == sizeof(wchar_t))){
cout << "Variable is wchar_t*" << endl;
}else if(sizeof(pVarToCheck) == sizeof(char)){
cout << "Variable is char*" << endl;
}else cout << "Mofo!" << endl;
}
Thanks!