Example #1
0
WTL::CString CNBUnitDevice::GetIDString()
{
	WTL::CString strID = m_pDevice->m_BaseInfo.szDeviceStringId;
	WTL::CString strText;
	strID.Remove(_T('-'));

	strText += 
		strID.Mid(0, 5) + _T("-") +
		strID.Mid(5, 5) + _T("-") +
		strID.Mid(10, 5) + _T("-") + _T("*****");
	//		strID.Mid(0, 5) + _T("-") +

	return strText;
}
Example #2
0
WTL::CString CObjectUIHandler::GetStringID(CDiskObjectPtr obj) const
{
	WTL::CString strID = obj->GetStringDeviceID();
	WTL::CString strDashedID;
	strID.Remove(_T('-'));

	strDashedID += 
		strID.Mid(0, 5) + _T("-") +
		strID.Mid(5, 5) + _T("-") +
		strID.Mid(10, 5) + _T("-") + _T("*****");
//		strID.Mid(0, 5) + _T("-") +

	return strDashedID;

}