Hi Mike,
FB does not appear to have an overlay mechanism like PB absolute arrays. But I did some tests and found FB does not mind passing anonymous pointers. So you can pass the pointer of one kind of data and receive it as the pointer to another kind of data. - which is almost as good as a simple overlay.
Of course passing data between TB and FB gives you greater opportunities to fudge the header declarations and pass the parameters byref instead of pointers byval.
[code=thinbasic]
'FreeBasic
'FB SUPPORTS ANONYMOUS POINTERS
dim as long a(100)
dim as any ptr p
p=varptr(a(0))
a(0)=65
sub fz(byval z as zstring ptr)
print *z
end sub
'These work:
asm
push [p]
call fz
end asm
fz p
[/code]
Bookmarks