#include "stdafx.h" #include "Utility.h" int GetPostionFromStrAddr(CString addr) { int nStart = addr.Find('['); int nEnd = addr.Find(']'); CString strPos = addr.Mid(nStart+1, nEnd-nStart-1); return atoi(strPos); }