How to debug component written in VS2003 in a VS2005 application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SGFpcmxpcERvZzU4?=

    How to debug component written in VS2003 in a VS2005 application

    I have a component that was developed in VS2003 that I need to debug in a
    VS2005 application.

    Basic steps are:

    Build the component for Debug in VS2003.
    Set the following VS2003 project properties for the component:
    Project Configuration Properties Debugging Debug Mode = Program
    Project Configuration Properties Debugging Start Application = <path
    to application built in VS2005>

    When I select Menu Debug Start, I get the following message:

    Error while trying to run project: Unable to start debugging
    Unable to start program 'c:\<path to application built in VS2005>'

    Same setup works fine if a VS2003 application is specified for Start
    Application.

    Any ideas?
  • =?Utf-8?B?SGFpcmxpcERvZzU4?=

    #2
    Re: How to debug component written in VS2003 in a VS2005 applicati

    I need to set breakpoints in the VS2003 component, not the VS2005 application.

    Comment

    • =?Utf-8?B?SGFpcmxpcERvZzU4?=

      #3
      Re: How to debug component written in VS2003 in a VS2005 applicati

      That's what I'm doing, but it's clunky.

      If I hit a breakpoint and find that i need to make a change in the
      component, you need to switch over to VS2003, make change, rebuild, then
      rebuild VS2005 project and run.

      Why does VS2003 care what type of application it is being told to run?

      In VC++ 6 you can run any type of app from the debugger.

      Comment

      • =?Utf-8?B?SGFpcmxpcERvZzU4?=

        #4
        Re: How to debug component written in VS2003 in a VS2005 applicati

        Ok, so the answer is that I need to switch back and forth between compilers,
        correct?

        I guess I'm spoiled. Since I can launch a VS2003 or VS2005 app from VC++ 6.0
        to debug an ActiveX Control in a .NET application, I expected the same from
        VS.NET.

        Thanks for the info.

        Comment

        • Jeffrey Tan[MSFT]

          #5
          Re: How to debug component written in VS2003 in a VS2005 applicati

          Additionally, I am not sure if I have understood you completely. Since you
          have the VS2005 tool, why can't you just re-build your VS.net2003 component
          in VS2005 compiler and IDE? .Net2.0 has good forward compatibility of
          ..Net1.1, so your VS.net2003 component shoud run without any problem after
          compiling under VS2005.

          Thanks.

          Best regards,
          Jeffrey Tan
          Microsoft Online Community Support
          =============== =============== ===========
          Delighting our customers is our #1 priority. We welcome your comments and
          suggestions about how we can improve the support we provide to you. Please
          feel free to let my manager know what you think of the level of service
          provided. You can send feedback directly to my manager at:
          msdnmg@microsof t.com.

          This posting is provided "AS IS" with no warranties, and confers no rights.


          Comment

          • Jeffrey Tan[MSFT]

            #6
            Re: How to debug component written in VS2003 in a VS2005 applicati

            Hi,

            Have you reviewed my last replies to you? Does it make sense to you? If you
            need any help or have any concern, please feel free to tell me, thanks.

            Best regards,
            Jeffrey Tan
            Microsoft Online Community Support
            =============== =============== ===========
            Delighting our customers is our #1 priority. We welcome your comments and
            suggestions about how we can improve the support we provide to you. Please
            feel free to let my manager know what you think of the level of service
            provided. You can send feedback directly to my manager at:
            msdnmg@microsof t.com.

            This posting is provided "AS IS" with no warranties, and confers no rights.

            Comment

            Working...