loss data and any warns

Hello everybody!
Told me how much danger newt warns?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

int ItemIdx = cdr.dwItemSpec;//'initializing' : conversion from 'DWORD_PTR' to 'int', possible loss of data



fstream outputFile("output.txt");//'o' : unrecognized character escape sequence



OldWndProc = (WNDPROC)GetWindowLong(hWnd,GWL_WNDPROC);//'type cast' : conversion from 'LONG' to 'WNDPROC' of greater size



int remaining = strlen( in ); // 'initializing' : conversion from 'size_t' to 'int', possible loss of data



    int inLen = strlen( in ); //'initializing' : conversion from 'size_t' to 'int', possible loss of data

    if (( *( in + inLen - 1 ) == '\n' ) ||

        ( *( in + inLen - 1 ) == '\r' )) {

        *( in + inLen - 1 ) = 0;

        inLen = strlen( in ); // '=' : conversion from 'size_t' to 'int', possible loss of data

    }



if ((udp_socket=socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP))!=NULL) // '=' : conversion from 'SOCKET' to 'int', possible loss of data

getch(); //'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details. 

Why me take too warns to loss data? How to fix that?
~~~~~~~~~~~~
Thanks.
You have to cast your variables directly or to use the same variable types.
E.g. if you save an unsigned integer of the size of 4294917295 in an integer, where you need the first bit for the sign you will have a completely different number for further calculations.
Topic archived. No new replies allowed.