It can be compared with dword type.
For example, you can use follow macros.
#define str2dword(sip, ip) { \
DWORD _2, _3, _4; \
_stscanf_s(sip, _T("%d.%d.%d.%d"), &ip, &_2, &_3, &_4); \
ip = ip | (_2 << 8); \
ip = ip | (_3 << 16); \
ip = ip | (_4 << 24); \
}
#define I4V2IP(a, b, c, d) ((DWORD)(a) | ((DWORD)(b)<<8) | ((DWORD)(c)<<16) | ((DWORD)(d)<<24))