Take a look at this piece:
Why is there an ampersand(&) in front of msg????Code:TranslateMessage(&msg);
Printable View
Take a look at this piece:
Why is there an ampersand(&) in front of msg????Code:TranslateMessage(&msg);
& is like AddressOf in VB.
Translate message takes a pointer to MSG, so it needs the memory location, a bit like ByRef, because it needs to alter it. So, you pass a pointer by getting it's address using &.
Thanks! :)