Debugging Visio AddIn in VB.NET

K

KemnitzerH

Hi everyone.
I've got a question using VB.NET to create a COM-AddIn for Visio 2003.
I had a look at Visio 2003 SDK. There is an example building a COM-AddIn.
I've read the instructions and looked the code. But-I can't debug it. Made
Stop-Points in event 'OnConnect', but the Stop-Point wasn't jumped on by the
Code.
I've built the Project and the setup new and started again. It works fine,
but I can't get into debugging. How can I manage this?
Every help is truely welcome. Thanks a lot for helping...
 
D

Dick Grier

Do you have Debug selected in the Solution Configuration drop-down (VS
..NET)?

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
 
K

KemnitzerH

Hi Dick.
Yes, I have. It's running in degug. Could it be, that something strange
happend in the registry? Maybe I should re-install VS.
I think this is very strange - I startet the project (an external Link was
made on Visio 2003 - otherwise I got an error). The debugging began, Visio
opend (AddIn isn't active) and a new instance of Visio Studio opend. Could
this be?

Thanks.
 
D

Dick Grier

Hi,

Have you done these steps?

a.. Create a COM add-in project.
a.. Add a reference to the Visio Primary Interop Assembly (PIA).
a.. Specify a namespace for the assembly.
a.. Implement the IDTExtensibility2 interface.
a.. Modify the information in AssemblyInfo.vb.
a.. Modify the setup project to register the add-in.

I haven't done this with .NET, so all I can suggest is the article in MSDN:
http://msdn.microsoft.com/library/d...l/Visio2003ManagedCodeTutorial_HV01092950.asp

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
 

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