VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

REAL data pointers in VB

Marius Schmidt  (1 Submission)   Coding Standards   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

This code shows you how to use Real pointers with VB. Everyone who jelled that VB has no pointers is simply wrong! VB arrays are just pointers to memory and it's quite simple to change the address of these pointers. It's pretty usefull for fast memory access without using a crappy CopyMemory call (the CopyMemory way would a) create memory garbage and b) create overhead because data moving is slow [though cpymemory is faster then manually moving data]), though we still need 1 small CopyMemory call but it's just a helper.

API Declarations
CopyMemory (well, it's just used for a little data moving)
VarPtrArray

Rate REAL data pointers in VB (6(6 Vote))

Download REAL data pointers in VB

REAL data pointers in VB Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters