gpt4 book ai didi

c++ - ADO 连接 CreateInstance 在 Windows Server 2003 上失败

转载 作者:行者123 更新时间:2023-11-30 04:26:44 25 4
gpt4 key购买 nike

我有一个在 Windows 7 上运行良好但在 Server 2003 上运行失败的应用程序。失败的行是下面的第三行

_ConnectionPtr pConnection = NULL;
::CoInitialize(NULL);
HRESULT hr = pConnection.CreateInstance(__uuidof(Connection));

返回的 HRESULT 是 0x80004002(不支持接口(interface))。两台机器都安装了 MDAC,但我不明白为什么会出现此错误。发生这种情况的任何原因?

最佳答案

关于c++ - ADO 连接 CreateInstance 在 Windows Server 2003 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11363878/

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