Как преобразовать CString в тип Enum в MFC (VC++)?Преобразование CString в тип Enum в MFC (VC++)?
У меня есть один метод, который принимает входной параметр как Enum, но я передаю ему значение Cstring, как я могу преобразовать его в перечисление.
CString strFolderType = strFolderType.Right(strFolderType.GetLength()-(fPos+1));
m_strFolderType = strFolderType ;
У меня есть один метод, как
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 ?