Swap Data Between Variables of Different Types

Category:
Miscellaneous
Type:
Modules
Difficulty:
Advanced
Author:
neophile

Version Compatibility: Visual Basic 6

More information:
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.

Declarations:

Code: