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 / January 2006

Tip: Looking for answers? Try searching our database.

IVsOutputWindow/IVsOutputWindowPane "General" pane.. how to..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fred Heida - 13 Jan 2006 02:51 GMT
Hi,

I want the get a handle to the General output window from package.. but
what's is its GUID ?

e.g
IVsOutputWindow *outputWindow;
IVsOutputWindowPane *p_IVsOutputWindowPane;

QueryService(SID_SVsOutputWindow, IID_IVsOutputWindow, (void**)
&outputWindow);
outputWindow->GetPane("What should this be ?", &p_IVsOutputWindowPane);

Cheers,
Fred
"Ed Dore [MSFT]" - 13 Jan 2006 04:37 GMT
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.

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.