<p>How to make a shadow to main window widget on windows using Qt?</p>

Correct, the second example is in violation of the strict aliasing rules, so if you compile with the
```
-fstrict-aliasing
```
flag, there's a chance you may get incorrect object code.  The fully correct solution would be to use a union here:
```
```
union
{
  SocketMsgToRecv msg;
  char msgBuff[100];
};

recv(socket, msgBuff, 100);

printf("Got Msg: a: %i, b: %i", msg.a, msg.b);
```
```