我在客户端收到服务器执行失败错误 [英] I am getting server execution failed error in the client

查看:273
本文介绍了我在客户端收到服务器执行失败错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在MFC应用程序中为现有类添加了双接口,但是当我运行客户端时,cocreateinstance失败并显示错误0x80080005(CO_E_SERVER_EXEC_FAILURE)服务器执行失败。

https://msdn.microsoft.com/en-us/library/ 4h56szat.aspx [ ^ ]

I have added dual interfaces to an existing class in MFC application but when i run the client the cocreateinstance is failing with the error 0x80080005 (CO_E_SERVER_EXEC_FAILURE) Server execution failed.
https://msdn.microsoft.com/en-us/library/4h56szat.aspx[^]

hr = ::CoCreateInstance(CLSID_Application, NULL, CLSCTX_LOCAL_SERVER, IID_IApplication, (void**)&m_IApplication);

    if (SUCCEEDED(hr)) {
            if (m_IApplication)
            {
                m_IApplication->Show();
            }
        }







请帮忙。




please help.

推荐答案

在阅读本博客我的第一种方法是一些安全/权利问题。启动过程是否具有启动应用程序的足够权限,或者是错误。 UUID的拼写错误并且CLSCTX_LOCAL_SERVER是右旗吗?
In reading this blog my first approach would be some security/rights issues. Has the starting process enough rights to start the app or is it bug. A typo of the UUID and is CLSCTX_LOCAL_SERVER the right flag?


这篇关于我在客户端收到服务器执行失败错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆