WriteFile input as Boolean

Aug 18, 2012 at 4:11pm
Hi,
Would like to ask a simple question. I'm using NamedPipes to connect in between server and client, and I want my client to send boolean to the server to remotely change some parameter in the server, as I know about NamedPipes, it uses WriteFile API to send data to the server, as all the example in the internet only send string, any idea how to send a boolean instead? Or maybe my understanding about NamedPipes isn't enough?

Thanks.
Aug 18, 2012 at 4:48pm
if you do cin>>boolalpha; It will accept "true" as true, and everything else as false.
Topic archived. No new replies allowed.