Pointers....

BlitzPlus Forums/BlitzPlus Programming/Pointers....

Moore(Posted 2007) [#1]
Ok is there anyway to get the pointer to a string I create in blitz? And then pass that to a dll?


b32(Posted 2007) [#2]
Yes, you could create a bank and pokebyte the characters into it, ending up with a zero, sort of like this:
s$ = s$ + chr$(0)
bank = createbank(len(s$))
for i = 1 to len(s$)
pokebyte bank, i - 1, asc(mid$(s$, i, 1))
next
;use bank here
freebank bank