The following method returns a (DWORD)IPAddress from a(CString)IPAddress. It is quite useful when using the CIPAddressControl.
DWORD CMyClass::GetDWORDIPAddress(CString strIPAddress){ strIPAddress.MakeReverse();// Start from behind char DOT = '.'; DWORD dwReturnValue = 0; double dPower = 0.0; int length = strIPAddress.GetLength(); DWORD dwByteTemp = 0; int nWhichByte = 0; int i = 0; for(i; i