Re: Managed app with native (ATL) control

Tech-Archive recommends: Fix windows errors by optimizing your registry



got it ... many thx!

-B

"Oleg Starodumov" <com-dot-debuginfo-at-oleg> wrote in message
news:uNqg67NoGHA.964@xxxxxxxxxxxxxxxxxxxxxxx

I'd like to debug a custom ActiveX control (made with ATL if it matters),
using a managed (CSharp) EXE. Anyone know how to do this.


You should configure the debugger to use either mixed or native mode
(in mixed mode you will be able to debug both native and managed code,
but debugger can work slower)

If you are debugging from the C# application's project, set the following
setting to "true" to enable mixed mode:
Project properties | Configuration Properties | Debugging | Enable
unmanaged debugging

If you are debugging from the ActiveX control's project, set the following
setting
to either "Native Only" or "Mixed":
Project properties | Configuration Properties | Debugging | Debugger Type

These settings are for VS2003. If you are using VS2005, there should be
similar settings.

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]





.



Relevant Pages

  • RE: Debugging is very slow
    ... I assume you are trying to debug in mixed mode. ... VS is extremly slow in single step mode when debugging mixed mode (I.E. ...
    (microsoft.public.vsnet.debugging)
  • Re: Debugging VC++ dll from C# project
    ... >during debugging, using VS.net? ... Assuming it's a native code C++ DLL, you'll need to enable mixed mode ... Note that mixed mode is very much slower. ...
    (microsoft.public.vsnet.debugging)
  • Re: Break all processes when one process breaks not working
    ... (C#, Windows Forms and Console). ... only managed threads are stopped. ... Try debugging in mixed mode. ...
    (microsoft.public.vsnet.debugging)
  • Re: Managed app with native (ATL) control
    ... You should configure the debugger to use either mixed or native mode ... (in mixed mode you will be able to debug both native and managed code, ... If you are debugging from the C# application's project, ... Project properties | Configuration Properties | Debugging | Debugger Type ...
    (microsoft.public.vsnet.debugging)
  • Re: DebugAsHighRes
    ... The executable that is copied for debug is most definitely not hires aware. ... But it is not debugging in that case. ... I just tried your experiment of resing the exe while the deploy dialog is waiting. ... size=2>Connected to Pocket PC Device running on ...
    (microsoft.public.dotnet.framework.compactframework)