Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Size of a GET/PUT array
#1
I need to know the size of an array if I pass it into a function. Here's what I mean:

Code:
screenres 800,600,32
dim a as integer ptr
a = imagecreate(300,200)
height = hiword(*a)
width = 0 'What is this value, its not loword
imagedestroy a
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.
Reply
#2
Code:
screenres 800,600,32
dim a as ushort ptr
a = imagecreate(300,200)

width = a[0] shr 3
height = a[1]

imagedestroy a
[/quote]
Reply
#3
Thanks man, I'm sticking with integers, but I was able to convert it.
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)