本文介绍了在VS2010中调试C#COM程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个C#程序集,它将通过COM从旧的vb6(即本机win32,而不是.net)应用程序调用。



我已经在W7 x64中安装了VS2010 Premium,我的目标只是使用Visual Studio来调试C#代码......其他提示:C#程序集是在x86模式(.NET4)中编译的,然后dll是在COM +下注册; ...过了一会儿我尝试在任何CPU模式下编译,没有任何结果...



总结,之后:

1)运行win32应用程序

2)在Foo方法上设置断点,

3)在win32进程上附加调试器.... br $> b $ b

***没什么.... ***

一切顺利但是那里无法激活VS中的调试器



有什么建议吗?



谢谢提前。



Flavio

解决方案


I'm developing a C# assembly which is to be called via COM from an old vb6 (ie, "native" win32, not .net) application.

I've installed VS2010 Premium in a W7 x64 and simply my goal is to use Visual Studio to debug the C# code...Other hint: the C# assembly is compiled in "x86 mode" (.NET4) and then the dll is registered under COM+; ...after a while i've try to compile in "Any CPU" mode, without any result...

in summary, after:
1) running the win32 app
2) setting the breakpoint on "Foo" method,
3) attaching the debugger on win32 process....

*** nothing ....***
Simply all works well but there is no way to activate the debugger in VS

Any suggestions?

Thanks in advance.

Flavio

解决方案



这篇关于在VS2010中调试C#COM程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 09:50
查看更多