Programaing and debugging with DLLs

Started by DC Kelley, April 17, 2010, 08:35:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DC Kelley

I have a simple DLL example I am working with (the 'flowchart' example) as I add the functionality I need for my project.

As this is implemented as a DLL, I generally compile the code then run Visio to see the result.  What I really need is to be able to run the debugger again, this mode of working has me reduced to strategically placing simple msgbox calls everywhere to track down bad code - very crude and slow.  How can I run the VB debugger on a dll and get back to being more productive here? 

Nikolay

TFM: Debugging the Add-in

"Adaptation" for Visio and VS 2008:

1. In Solution Explorer, right-click the add-in project and choose Properties.
2. On the left side of the Properties window, select "Debug" tab. Set the "Start action" to "Start external program" and the path to Visio executable file. For 32-bit windows and Visio 2007, this path is by default "C:\Program Files\Microsoft Office\Office12\Visio.exe"
3. Build the add-in project and the setup project.
4. In Solution Explorer, right-click the setup project and choose Install.
5. Press F5 to start Visio and load the add-in.

DC Kelley

Thanks, that is much better. Can't believe I did not know how to do this.  Now I just need to rework a bunch of code to have some logic to cope with the in-out process issue with my toolbar icons and I am back to real work...