Swap Data Between Variables of Different Types
Version Compatibility: Visual Basic 6
This module just shows some simple yet hopefully inspiring things you can do with the CopyMemory (or RtlMoveMemory) API call. Due note that you must pass strings as ByVal or else you'll end up with gibberesh or, even worse, copy over some unknown memory location! So be careful!
Instructions: Copy the declarations and code below and paste directly into your VB project.