Every analyzer project comes with an MS Visual Studio project called PROG in the top-level folder. This shows how to call an analyzer from VisualText.
See Compiled and Standalone Analyzers for more details.