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.