Pointers....
BlitzPlus Forums/BlitzPlus Programming/Pointers....
| ||
Ok is there anyway to get the pointer to a string I create in blitz? And then pass that to a dll? |
| ||
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 |