How to cast a "int" to "uchar&" for using SocketSend() function?
i did it like this.
#import "msvcrt.dll" int memcpy(char &dst[], int &src, int cnt); #import int src=5; char dst[sizeof(int)]; memcpy(dst, src, sizeof(int)); SocketSend(dst, sizeof(int)); i hope it help to someone too!!
I need to send an int via socket, but the casts I'm using doesn't works. How to do it in MQL?
I'm trying it like this.
Thank you so much!!