0
MFC (VC++)에서 CString을 Enum 형식으로 변환하는 방법은 무엇입니까?MFC (VC++)에서 CString을 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 ?