gpt4 book ai didi

c++ - 神秘的 HRESULT 错误

转载 作者:行者123 更新时间:2023-11-28 03:23:22 26 4
gpt4 key购买 nike

以下 EndDraw() 函数返回 HRESULT 错误代码: http://msdn.microsoft.com/en-us/library/windows/desktop/dd371924%28v=vs.85%29.aspx

文档指定:

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code and sets tag1 and tag2 to the tags that were active when the error occurred.

...and then returns an HRESULT indicating the success of the operations...

我得到的返回值是 -2003238911 (0x88990001),它没有出现在 Microsoft 的“Common HRESULT values”页面上: http://msdn.microsoft.com/en-us/library/windows/desktop/aa378137%28v=vs.85%29.aspx

我也在 WinError.h 中搜索了错误代码,但也没有找到。如果它返回此代码,则必须有一种方法可以找出它的含义。

如何解释此错误代码以找出问题所在?

最佳答案

您使用 Google,该十六进制代码的最高结果是这样的:

D2DERR_WRONG_STATE
0x88990001
The object was not in the correct state to process the method.

http://msdn.microsoft.com/en-us/library/windows/desktop/dd370979(v=vs.85).aspx

我对图形编程或 Windows 编程一无所知,但我认为这回答了你的问题,结合文档说明标签值将返回给你,指的是发生错误的地方。

关于c++ - 神秘的 HRESULT 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14811497/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com