运行VisualStudio 2008 ATL COM服务器时出错 [英] Error when running VisualStudio 2008 ATL COM server

查看:84
本文介绍了运行VisualStudio 2008 ATL COM服务器时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dears,





我用Visual Studio 2008,C ++开发了一个ATL COM服务器。我称之为注册'Exefile.exe / RegServer'。当我在安装了Visual Studio 2008的计算机上执行它时它工作正常,但如果没有安装它会崩溃。我已经验证目标计算机安装了与构建项目(3.5)和正确版本的Microsoft Visual C ++ 2008 Redistributable相同的.NET框架,但是没有办法。只有在安装Visual Studio 2008之后才能正常工作。我只收到错误(用西班牙语)Laaplicaciónnose ha podido inicializar correctamente(0xc0000008).Haga clic en Aceptar para terminar la aplicacion(应用程序未能正确初始化(0xc0000008)

请点击在OK上终止申请)。我已经尝试了几台目标计算机并验证了.NET和Redistributable版本。总是在32位上工作。



有人有建议吗?



谢谢先进,



Xavier

Dears,


I've developed an ATL COM server with Visual Studio 2008, C++. I call it for registering with 'Exefile.exe /RegServer'. It works fine when I execute it on a computer with Visual Studio 2008 installed, but it crashes if no installed. I've verified that the target computer has installed the same NET framework than used at building the project (3.5)and the correct version of Microsoft Visual C++ 2008 Redistributable, but there is no way. Only after installing Visual Studio 2008 it works OK. I receive only the error (in Spanish) "La aplicación no se ha podido inicializar correctamente (0xc0000008). Haga clic en Aceptar para terminar la aplicacion" (The application failed to initialize properly (0xc0000008)
Click on OK to terminate the application). I've tried on several target computers and verified the NET and Redistributable versions. Always working on 32 bits.

Anybody has a suggestion?,

Thanks in advanced,

Xavier

推荐答案

你在dll hell。使用工具依赖性查看器在目标计算机上打开您的dll并查看正在进行的操作。我的第一个提示是,你安装了一些调试dll。检查发布版本设置并使用静态链接。
You are in dll hell. Use the Tool dependency viewer to open your dlls on the target machine and see what is going on. My first tip is, that you have some debug dlls installed. Check for release build settings and use static linking.


这篇关于运行VisualStudio 2008 ATL COM服务器时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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