I have to send bitmap and do something like this:
HBITMAP bmp = LoadBitmap(0,MAKEINTRESOURCE(1)); send(socket,(char*)&bmp,sizeof(HBITMAP),0);
HBITMAP bmp; recv(socket,(char*)&bmp,sizeof(HBITMAP),0);
But this won't work and I know it... so I have to use e.g. GetDIBits and SetDIBits.
But how? Please don't give any example links, they will rarely help. I have tried myself by searching google.