OLE, OLE-DB中经常遇到的HRESULTS

这篇文章列举了在使用OLE和OLE-DB时可能遇到的一系列HRESULT错误代码,包括“未实现”、“内存不足”、“无效参数”等,并提供了详细描述,帮助开发者识别和解决这些问题。
摘要由CSDN通过智能技术生成

如果你遇到类似Exception from HRESULT: 0x80040E2F 这样的错误信息, 却不知道发生了什么, 下面的列表可以帮助你更进一步的了解你遇到的错误.

 

这个列表是来自Win32 SDK中包含的Winerror.h中的. 这个列表是完整OLE错误的子集. 但是, 这个集合是OLE, OLE-DB, ADO经常报出的错误.

 

  HRESULT   Hex HRESULT                    Description
----------  -----------  ----------------------------------------------
0x80000001  -2147483647  Not implemented
0x80000002  -2147483646  Ran out of memory
0x80000003  -2147483645  One or more arguments are invalid
0x80000004  -2147483644  No such interface supported
0x80000005  -2147483643  Invalid pointer
0x80000006  -2147483642  Invalid handle
0x80000007  -2147483641  Operation aborted
0x80000008  -2147483640  Unspecified error
0x80000009  -2147483639  General access denied error
0x8000000A  -2147483638  The data necessary to complete this operation
                         is not yet available.
0x80004001  -2147467263  Not implemented
0x80004002  -2147467262  No such interface supported
0x80004003  -2147467261  Invalid pointer
0x80004004  -2147467260  Operation aborted
0x80004005  -2147467259  Unspecified error
0x80004006  -2147467258  Thread local storage failure
0x80004007  -2147467257  Get shared memory allocator failure
0x80004008  -2147467256  Get memory allocator failure
0x80004009  -2147467255  Unable to initialize class cache
0x8000400A  -2147467254  Unable to initialize RPC services
0x8000400B  -2147467253  Cannot set thread local storage channel control
0x8000400C  -2147467252  Could not allocate thread local storage channel
                         control
0x8000400D  -2147467251  The user supplied memory allocator is
                         unacceptable
0x8000400E  -2147467250  The OLE service mutex already exists
0x8000400F  -2147467249  The OLE service file mapping already exists
0x80004010  -2147467248  Unable to map view of file for OLE service
0x80004011  -2147467247  Failure attempting to launch OLE service
0x80004012  -2147467246  There was an attempt to call CoInitialize a
                         second time while single threaded
0x80004013  -2147467245  A Remote activation was necessary but was not
                         allowed
0x80004014  -2147467244  A Remote activation was necessary but the
                         server name provided was invalid
0x80004015  -2147467243  The class is configured to run as a security
                         id different from the caller
0x80004016  -2147467242  Use of Ole1 services requiring DDE windows is
                         disabled
0x80004017  -2147467241  A RunAs specification must be
                         <domain name>\<user name> or simply <user name>
0x80004018  -2147467240  The server process could not be started.  The
                         pathname may be incorrect.
0x80004019  -2147467239  The server process could not be started as the
                         configured identity.  The pathname may be
                         incorrect or unavailable.
0x8000401A  -2147467238  The server process could not be started because
                         the configured identity is incorrect.  Check
                         the username and password.
0x8000401B  -2147467237  The client is not allowed to launch this
                         server.
0x8000401C  -2147467236  The service providing this server could not
                         be started.
0x8000401D  -2147467235  This computer was unable to communicate with
                         the computer providing the server.
0x8000401E  -2147467234  The server did not respond after being
                         launched.
0x8000401F  -2147467233  The registration information for this server
                         is inconsistent or incomplete.
0x80004020  -2147467232  The registration information for this interface
                         is inconsistent or incomplete.
0x80004021  -2147467231  The operation attempted is not supported.
0x8000FFFF  -2147418113  Catastrophic failure
0x80070005  -2147024891  General access denied error
0x80070006  -2147024890  Invalid

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值