No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Declare.l MailSlot_WriteString(hSlot.l, string.s) ; Writes a string to the given mailslot.
Declare.l MailSlot_WriteData(hSlot.l, *MemoryBuffer, LengthToWrite.l) ; Writes the content of the specified memory buffer to the given mailslot.
Declare.s MailSlot_ReadString(hSlot.l) ; Reads a string from the given mailslot.
Declare.l MailSlot_ReadData(hSlot.l, *MemoryBuffer, LengthToRead.l) ; Reads the content from the given mailslot inside the specified memory buffer.
Declare.l MailSlot_Open(SlotName.s) ; Open an existing mailslot, must be closed using CloseSlot().
Declare.l MailSlot_Next(hSlot.l) ; Returns #True if there are one or more messages in the given mailslot.
Declare.s MailSlot_LastError() ; Returns a formatted string of the last error.
Declare.l MailSlot_Create(SlotName.s) ; Creates a mailslot, must be closed using CloseSlot().
Declare.l MailSlot_Close(hSlot.l) ; Close an existing mailslot.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Actually, I did not even use your sample, I admit I had a look at it, but as I'm not into libraries I decided to figure it out on my own the best way I could, by bumbling and stumbling around
I didn't test yet the 'multiple mailslot' thing, can multiple programs have the same mailslot open? Documentation was a bit conclicting on that one. Did you look into that?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )