MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / GetDXErrorStringAnsi

Function GetDXErrorStringAnsi

SampleFramework12/v1.00/Exceptions.h:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63inline std::string GetDXErrorStringAnsi(HRESULT hr)
64{
65 std::wstring errorString = GetDXErrorString(hr);
66
67 std::string message;
68 for(uint64 i = 0; i < errorString.length(); ++i)
69 message.append(1, static_cast<char>(errorString[i]));
70 return message;
71}
72
73inline std::wstring GetGdiPlusErrorString(Gdiplus::Status status)
74{

Callers

nothing calls this directly

Calls 1

GetDXErrorStringFunction · 0.85

Tested by

no test coverage detected