Gathering Data (with CreateBank) from a C struct

Blitz3D Forums/Blitz3D Userlibs/Gathering Data (with CreateBank) from a C struct

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thank you. This could really solve the problem. I haven't tried it.

RTL reminds me of a german TV channel ... hehe

EDIT:
Great it really works that way. Here is a short snippet how i use this kernel32 RTL function ... thanks jfk

Function GetChars$(memaddr)
	;interates through memory until it finds a NULL str
	;memaddr is the starting point
	;returns the strin
	Local lChar$,lRetString$
	Local i% = 0
	lCharBank = CreateBank(4)

	Repeat
		RTLMoveMemory2(lCharBank,memaddr+i,1)
	
		;Save char in lChar
		lChar = Chr$(PeekByte(lCharBank,0))

		;test for NULL string
		If (Asc(lChar) <> 0) Then
			lRetString = lRetString + lChar
			i = i + 1
		Else
			Exit
		End If
	Forever

	Return lRetString

End Function