远程调试C ++在Windows Server 2008平台上与VS2010; MSVCP100D.dll丢失 [英] Remote debugging C++ on the Windows Server 2008 platform with VS2010; MSVCP100D.dll missing

查看:360
本文介绍了远程调试C ++在Windows Server 2008平台上与VS2010; MSVCP100D.dll丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VS2010编写了一个快速的C ++控制台应用程序。我想通过Windows Server 2008平台上的远程调试器运行它,以确定为什么我不能枚举该操作系统上的CLSID_AudioInputDeviceCategory。

I've written a quick C++ console app using VS2010. I'd like to run it via the remote debugger on the Windows Server 2008 platform, in order to determine why I can't enumerate the CLSID_AudioInputDeviceCategory on that OS.

控制台应用程序在XP和W7平台上工作。

The console app works on the XP and W7 platforms.

当我第一次尝试运行控制台应用程序时,远程调试器给出以下错误:

The remote debugger gives the following error when I first tried to run the console app:

The program can't start because MSVCP100D.dll is missing from your computer.  Try reinstalling the program to fix the problem.

我试过将这个DLL从我的开发机器复制到远程机器上的目标文件夹,但是它返回一个更加模糊的消息:

I did try just copying this DLL from my development machine to the target folder on the remote machine, but it returned an even more obscure message:

The application was unable to start correctly (0xc0000007b).  Click OK to close the application.

我试过在目标主机上安装VS2010 C ++可重新分配。这没有效果。我没有想法,有没有任何建议?

I've tried installing the VS2010 C++ re-distributable on the target host. This has no effect. I'm out of ideas, does anyone have any suggestions?

在这个问题上花了一些时间,我注意到服务器2008上的Windows音频服务已禁用,但我的查询是更多的远程调试工作在服务器2008平台比解决我的音频硬件枚举问题。

Having spent some time on this problem, I've noticed that the Windows Audio service on server 2008 was disabled, but my query is more to do with getting remote debugging working on the server 2008 platform than solving my audio hardware enumeration problem.

推荐答案

感谢Errata,看看

Thanks to Errata, I had a look at

项目属性 - >配置属性 - > C ++ - >代码生成

Project Properties -> Configuration Properties -> C++ -> Code Generation

我将运行库从多线程调试DLL更改为多线程调试(/ MTd)。

I changed Runtime Library from Multi-threaded Debug DLL to Multi-threaded Debug (/MTd).

这允许远程调试而不必依赖于正确的调试DLL驻留在远程机器上。

This allows remote debugging without having to rely on the correct debug DLLs residing on the remote machine.

我希望这可以帮助某人!

I hope this helps someone out there!

这篇关于远程调试C ++在Windows Server 2008平台上与VS2010; MSVCP100D.dll丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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