Grault
Grault
CC#
Created by Grault on 10/30/2024 in #help
NetMQ: SendFrame never sends, never returns.
I was moving a socket across threads (not OK without special logic). Never mind.
5 replies
CC#
Created by Grault on 10/30/2024 in #help
NetMQ: SendFrame never sends, never returns.
When I run the minimal client code from the WPF app (on its own thread), the minimal server hears the message. I then targeted the driver with a valid message copied from the failing code, and the driver received the message.
5 replies
CC#
Created by Kaoruko Waguri on 9/30/2022 in #help
Need some help
Good!
159 replies
CC#
Created by TOLOXI on 10/1/2022 in #help
Need help with a simple program
That's the number of minutes until the end of the hour.
16 replies
CC#
Created by TOLOXI on 10/1/2022 in #help
Need help with a simple program
Or maybe you mean you want (in your example of 2 hours and 20 minutes) f(140) = 40. That would be f(x) = 60 - (x % 60).
16 replies
CC#
Created by TOLOXI on 10/1/2022 in #help
Need help with a simple program
In my example above, that will get the original number of minutes since midnight.
16 replies
CC#
Created by TOLOXI on 10/1/2022 in #help
Need help with a simple program
18 * 60 + 30
16 replies
CC#
Created by TOLOXI on 10/1/2022 in #help
Need help with a simple program
/ 60 will do that.
16 replies
CC#
Created by TOLOXI on 10/1/2022 in #help
Need help with a simple program
If the time is 18:30, and you have that as a number of minutes since midnight, minuer / 60 == 18 and minuer % 60 == 30.
16 replies
CC#
Created by TOLOXI on 10/1/2022 in #help
Need help with a simple program
I think you want minuer / 60.
16 replies