C# WinForm VS 2003 and VS 2008 debugging problem

J

Jason Huang

Hi,

We have a VS 2003 C# .net 1.1 WinForm application which needs to link to a
VS 2008 C# .net 3.5 WinForm application.
In the VS 2003, I used the code
Process.Start ("C:\\Program Files\\ETC\\ETCQuotation\\Quotation.exe")
to open the Quotation.exe, which is the VS 2008 .net 3.5 C# application.
We can open the .net 3.5 application, but we need to do exporting data to an
Excel file.
Now comes the problem, it raise an error:
System.Runtime.InteropServices.COMException (0x800A03EC)
Both applications we have reference includes interop.excel.dll,
interop.office.dll, office.dll.
I'm trying to do the debugging in the VS 2008 while the VS 2003 calling the
VS2008, but don't know how.
Thanks for help.


Jason
 
A

Alberto Poblacion

Jason Huang said:
I'm trying to do the debugging in the VS 2008 while the VS 2003 calling
the VS2008, but don't know how.


Wait until the executable is running. Then goto Visual Studio, which
sould already be open on the corresponding project, and select the option in
the menu to Debug -> Attach to Process... When the Attach to Process window
opens, select the executable that is already running, and you are ready to
set breakpoints on the source code to debug the program.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top