how to Convert CString to Enum type in MFC(VC++) ?
I have one method which take input parameter as Enum but i am passing Cstring value to it how i can convert it to enum.
CString strFolderType = strFolderType.Right(strFolderType.GetLength()-(fPos+1));
m_strFolderType = strFolderType ;
I have one method as
ProtocolIdentifier(eFolderType iFolderType)
where enum eFolderType
{
eFTP = 1,
eCIFS,
eBOTH
};
now when i am calling like this :
ProtocolIdentifier(m_strFolderType);
It says cannot convert CString to eFolderType ...
How to resolve this ?