Ok, I've sorted the String bits by adding a :Byte Ptr instead, so it reads:
I'm now stuch at the getFileList function. Turtle's using banks and I'm not quite sure what's happening although I'm pretty sure bmx doesn't need this. Anyone got an alternate, easy version of the function below:
What does it do? And why?
Global InternetConnect(hInternet:Int, ServerName:Byte Ptr, ServerPort:Int, Username:Byte Ptr, Password:Byte Ptr, Service:Int, Flags:Int, dwContext:Int)"win32"=GetProcAddress(wininetLib,"InternetConnectA")And I use a toCString()
I'm now stuch at the getFileList function. Turtle's using banks and I'm not quite sure what's happening although I'm pretty sure bmx doesn't need this. Anyone got an alternate, easy version of the function below:
Function ReadAPIString$(bank,offset=0) size = BankSize(bank) For x = offset To (size-1) If PeekByte(bank,x) = 0 Then Exit 'Null terminator found myString$ = myString$ + Chr$(PeekByte(bank,x)) Next Return myString$ End Function
What does it do? And why?