// c++20
#include
#include
#include
// typedef _Return_type_success_(return >= 0) long HRESULT;
// #define _HRESULT_TYPEDEF_(_sc) ((HRESULT)_sc)
// #define E_OUTOFMEMORY _HRESULT_TYPEDEF_(0x8007000EL)
int main()
{
auto str1{ std::format("0x{:X}", E_OUTOFMEMORY) };
std::cout
Подробнее здесь: https://stackoverflow.com/questions/797 ... exadecimal
Мобильная версия