Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-05

simpleIPC strings

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

With simpleipc you can send a string.

I am wondering what type of string is safe to send?

i.e. what happens with utf8 or unicode?

Is it meant to send a regular string (like a pointer to char) and not more complex strings? Both?

Because if a string is being sent across two different separate processes (exe's) and possibly in different programming languages (when I make simpleipc DLL) it will be handy to know what exact type of string this communication is meant for: english characters, unicode, utf8, all of the above.

Reply by email

Michael Van Canneyt
to Unknown author
Show quoted text 5 lines
With simpleipc you can send a string. I am wondering what type of string is safe to send? i.e. what happens with utf8 or unicode?

If both sender and receiver use the same defaultsystemcodepage, it should transfer fine.

Show quoted text 9 lines
Is it meant to send a regular string (like a pointer to char) and not more complex strings? Both? Because if a string is being sent across two different separate processes (exe's) and possibly in different programming languages (when I make simpleipc DLL) it will be handy to know what exact type of string this communication is meant for: english characters, unicode, utf8, all of the above.

Regard it as an array of bytes and you'll be fine.

Michael.

Reply by email