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.