Is there some sort of Windows to macOS cheat sheet somewhere?
I can’t seem to get Google to come up with anything.
I’m after, say, how to do/replace/whatever creatfile, writefile, readfile, closehandle, gettickcount, at least for starters
Is there some sort of Windows to macOS cheat sheet somewhere?
I can’t seem to get Google to come up with anything.
I’m after, say, how to do/replace/whatever creatfile, writefile, readfile, closehandle, gettickcount, at least for starters
You could replace createfile, writefile, readfile, closehandle with TFileStream - it would work on windows as well as MacOS.
GetTickCount could possibly be replaced by System.Diagnostics.TStopwatch - which also works on both platforms.
Filestream work with com ports?
How do you access all the com port control functions?
Thanks for you suggestions, sorry to hit you with the above, but it’s just another part of the same puzzle, if that makes sense, like surely someone must have done a cheat sheet, anyway.
You can get some pretty good information on this kind of question using AI. Here’s an example:
If you enter that prompt yourself you can follow up with specific questions like “How can I access COM ports on macOS?”.
That will give you a good head start on directions to take and you could develop a simple POC app before trying to port across an existing app.
Cheers,
Jarrod
Probably not.
Winsoft have a component that does COM ports though for macOS though. See
ComPort for macOS .
Ararat Synapse looks like it support macOS as well.