Luckily, 95% of my code uses PB's internal commands. The only problems I can foresee come from using external utilities - Curl, FFMPEG and SoX.
I've learned that MacOS has Curl built in. Can anyone tell me what would be the equivalent of this Windows code?
Code: Select all
*Buffer = AllocateMemory(SizeOf(Double))
prog.i = RunProgram("H:\curl.exe",param,WorkingDirectory,#PB_Program_Open|#PB_Program_Read)
While ProgramRunning(prog)
If AvailableProgramOutput(prog)
NumOfBytes = ReadProgramData(prog, *Buffer, SizeOf(*Buffer))
OutputString$ + PeekS(*Buffer, NumOfBytes, #PB_UTF8)
EndIf
Delay(50)
Wend
CloseProgram(prog)
I realise these are all "newbie" questions, but I'm guessing that asking them here is the fastest way to get the answers. I'll be grateful for any help.