Run Control Flow Graph Add-in

I try Control Flow Graph Add-in which I imporfrom src/samples/ControlFlowGraph-add-in directory into MSVS 2005. After build solution,how I can run the project? How can I see a CFG for a method shown in Figure 1 in theWalkthrough: VS Add-in - Control Flow Graph document? Thanks.
[350 byte] By [newbie_phoenix] at [2008-2-4]
# 1

I believe the RDK installation actually installs the CFG binaries (Control-Flow-Graph.dll and Control-Flow-Graph-To-Deploy.Addin). They go under the c:\Documents and Settings\<user>\Application Data\Microsoft\MsEnvShared\Addins\. The addin may have to be enabled in VS first, under Tools->Add-In Manager.

Once you have that deployed, you can start a new project, I believe both C# and C++/CLI work with the CFG. Build the project, and then right click on a function in the class View. A View control-flow-graph menu option should appear at the top. CLick it and the CFG should appear in a new window.

MattMitchell at 2007-10-3 > top of Msdn Tech,Visual Studio,Phoenix...
# 2
Thanks for your reply. VS does have the addin. But I cannot see control-flow-graph menu option when I click on a method such as M1. An empty window of CFG is popped up when I enable the addin? Any suggestion? Thanks again.

newbie_phoenix at 2007-10-3 > top of Msdn Tech,Visual Studio,Phoenix...
# 3

Hmm,

What language are you trying to view the control flow graph in? I remember the DDE model in VS being a little flaky at times (very intolerant of small errors). Is there any way you can send me the project you're trying to view the CFG with?

MattMitchell at 2007-10-3 > top of Msdn Tech,Visual Studio,Phoenix...
# 4
Matt Mitchell wrote:

Hmm,

What language are you trying to view the control flow graph in? I remember the DDE model in VS being a little flaky at times (very intolerant of small errors). Is there any way you can send me the project you're trying to view the CFG with?

Thanks for your reply. What is your email address?

newbie_phoenix at 2007-10-3 > top of Msdn Tech,Visual Studio,Phoenix...
# 5
mmitche@microsoft.com
MattMitchell at 2007-10-3 > top of Msdn Tech,Visual Studio,Phoenix...

Visual Studio

Site Classified