I am trying to use CopyMemory to copy data from a User-Type into a byte array for transmission using the Winsock Control. Then copy back from the byte array to the Same UserType.
The problem I'm having is my UDT contains a Byte Array too, and on copying the data back into the UDT sets all the other fields correctly but the byte array contains the whole byte array that was received.
Any one any ideas whats going on!
More points available for any good answers.