User profile: coder777

User info
User name:coder777
History
Joined:
Number of posts:8390
Latest posts:

Read / Write Array Of Byte
Or this: [code]#include <iterator> // std::back_insert_iterator ... char sendID[] = "[SEND] "...

Be careful when storing the result of std::clamp as a reference
A struct is not a pod. There is even a std::is_pod. See: https://en.cppreference.com/w/cpp/types/is...

Be careful when storing the result of std::clamp as a reference
This is indeed dangerous since std::clamp operates with (temporary) const &. In cppreference.com th...

code unexplained behavior
You do not provide enough code to reproduce the problem. So the problem might not be where you think...

how to release HDC object
[quote]still does not flush memory[/quote]On line 72 the window dc is released. I.e. you don't have ...