Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / July 2004

Tip: Looking for answers? Try searching our database.

Putting text into the Output window?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Foust - 21 Jul 2004 21:38 GMT
I'm trying to figure out how to put text into the Output window with the
VSIP Extras. I know I need a reference to IVsOutputWindow which I can use to
call GetPane and get an IVsOutputWindowPane for a specific pane based on a
Guid. However, my attempts to do this ends up with nothing in the pane. I've
tried every guid from the registry HKLM\Software\Microsoft\Visual
Studio\7.0\OutputWindows, but none of them seem to work.

What Guid corresponds to the OutputWindow where build output goes?

Bill
Chetan N Parmar[MSFT] - 22 Jul 2004 19:46 GMT
Hi Bill,
You can use GUID_BuildOutputWindowPane to get to that. Comments from the
vsshell.idl. If you are using mananged code you will have to define this in
your code it is nto exposed via the Helper dll.

Excerpt from the vsshell.IDL file.

//   "Build" -- Projects often display build errors/warnings in the "Build"
OutputWindow pane.
//              This pane is create by the SVsSolutionBuildManager service.
The pointer to
//              the pane is passed to projects as part of
IVsBuildableProjectCfg operations.
//   "General" -- Any party can display miscellaneous informational
messages that occur at any
//              time can be displayed in the "General" OutputWindow pane.
The "General" pane
//              can be retrieved by calling
QueryService(SID_SVsGeneralOutputWindowPane,
//              IID_IVsOutputWindowPane) as a global service.
cpp_quote("DEFINE_GUID(GUID_BuildOutputWindowPane, 0x1BD8A850, 0x02D1,
0x11d1, 0xbe, 0xe7, 0x0, 0xa0, 0xc9, 0x13, 0xd1, 0xf8);")

Thanks
Chetan N Parmar
VSCORE, MSFT

[This posting is provided AS IS with no warranties, and confers no rights.]
"Ed Dore [MSFT]" - 22 Jul 2004 20:52 GMT
Hi Bill,

You need to use QueryService to retrieve the IVsOutputWindow pointer. From
there you can use the IVsOutputWindow::GetPane() to retrieve the
IVsWindowPane you're looking for.

Note the guid passed to GetPane should be the same one you used to create
the pane with IVsOutputWindow::CreatePane. If you are attempting to
retrieve an existing pane, it might be easier to just use the DTE
automation model, as the guids associated with the outputwindow panes are
internal to the services that create them.

Sincerely,
Ed Dore [MSFT]

This post is "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.