Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_mem
#3
thanks DSMan195276
I think that I misunderstood the way _mem works, I thought that it worked similar to the following

Code: (Select All)

Declare CustomType Library
    Sub memcpy (ByVal dest As _Offset, ByVal source As _Offset, ByVal bytes As Long)
End Declare

Dim As _Offset os, ox, oy
Dim As Long i
Dim As Double x, y
Dim As String * 80 s

os = _Offset(s)
ox = _Offset(x)
oy = _Offset(y)

For i = 0 To 9
    x = Sqr(i + 1)
    memcpy os, ox, 8
    os = os + 8
Next

os = _Offset(s)
For i = 0 To 9
    memcpy oy, os, 8
    Print y
    os = os + 8
Next
Reply


Messages In This Thread
_mem - by Jack - 12-31-2024, 09:52 PM
RE: _mem - by DSMan195276 - 01-01-2025, 07:11 AM
RE: _mem - by Jack - 01-01-2025, 09:08 AM
RE: _mem - by Jack - 01-01-2025, 10:01 AM
RE: _mem - by SMcNeill - 01-01-2025, 10:18 AM
RE: _mem - by SMcNeill - 01-01-2025, 10:10 AM
RE: _mem - by Jack - 01-01-2025, 10:27 AM
RE: _mem - by SMcNeill - 01-01-2025, 10:36 AM
RE: _mem - by Jack - 01-01-2025, 10:40 AM
RE: _mem - by SMcNeill - 01-01-2025, 10:45 AM
RE: _mem - by Kernelpanic - 01-01-2025, 11:55 PM
RE: _mem - by DSMan195276 - 01-01-2025, 11:13 PM
RE: _mem - by DSMan195276 - 01-02-2025, 12:27 AM



Users browsing this thread: 6 Guest(s)