GetLastError()에 의해 반환된 오류 코드에서 오류 메시지를 얻는 방법 Windows API 호출 후 텍스트 형식으로 마지막 오류 메시지를 받으려면 어떻게 해야 합니까? GetLastError()텍스트 메시지가 아닌 정수 값을 반환합니다.//Returns the last Win32 error, in string format. Returns an empty string if there is no error. std::string GetLastErrorAsString() { //Get the error message ID, if any. DWORD errorMessageID = ::GetLastError(); if(errorMessageID == 0) { return std::string(); //..