HI
Friends i need to convert TCHAR to Boolean value
This is what i want
_TCHAR gstrEnableproxy="false"
o/p:
boolean x=false
and the code i have written is
void convertStringBoolean(String* TCHAR)
{
bool boolVal = false;
try
{
boolVal = system::Convert::ToBoolean(TCHAR);
}
catch(System::FormatException*)
{
System::Console::WriteLine("The string TCHAR* System::Boolean::TrueString or System::Boolean::flasestring");
}
}
Its giving me error and i have try some more way but no use i want to convert TCHAR to boolean
I am writing code in VC++ 2005 version
please help.
Thanks in advance