Hi Fred,
That took a little detective work. I thought you could get this with an
IVsOutputWindow::GetPane call as well, but I found the following comments
in the vsshell.idl file which indicate you should use the
SVsGeneralOutputWindowPane service to get the IVsOutputWindowPane of the
general pane. I haven't tried it myself, but I see code in some of our
components that call QueryService with this, so I suspect that's the way to
go.
//--------------------------------------------------------------------------
--
// interface IVsOutputWindowPane
//--------------------------------------------------------------------------
--
// Implemented by the Environment by the OutputWindow tool window.
// Interface retrieved by IVsOutputWindow::GetPane.
// Used by parties that want to display messages in the OutputWindow. The
OutputWindow
// is an extensible Window, but every OutputWindowPane must have an owner
VsPackage
// that creates the pane via IVsOutputWindow::CreatePane. There are two
standard OutputWindow
// panes owned by the Environment:
// "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);")
Sincerely,
Ed Dore [MSFT]
This post is 'AS IS' with no warranties, and confers no rights.
Fred Heida - 13 Jan 2006 05:24 GMT
Hi Ed,
Thx, for the quick respone!.. but i get the error LNK2001: unresolved
external symbol _SID_SVsGeneralOutputWindowPane
even if i #include "vsshell.h", so do i need to include/import something
else ?
Fred
> Hi Fred,
>
[quoted text clipped - 43 lines]
>
> This post is 'AS IS' with no warranties, and confers no rights.
Ed Dore [MSFT] - 13 Jan 2006 06:47 GMT
Hi Fred,
Are you linking with the vsguids.lib? I suspect that it's declared in that
lib.
Ed...
> Hi Ed,
>
[quoted text clipped - 53 lines]
>>
>> This post is 'AS IS' with no warranties, and confers no rights.
Fred Heida - 15 Jan 2006 20:06 GMT
Hi Ed,
Yes we are linking with the vsguids.lib..
Fred
> Hi Fred,
>
[quoted text clipped - 64 lines]
>>>
>>> This post is 'AS IS' with no warranties, and confers no rights.