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 / September 2005

Tip: Looking for answers? Try searching our database.

Help with IVsCodeDefView

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Parag Chandra - 30 Aug 2005 20:27 GMT
Hi,

I'd like to manipulate the Code Definition Window, via the IVsCodeDefView
interface. I have implemented this interface on a class, and I have
implemented IVsCodeDefViewContext on another class. When I call SetContext()
everything works as I want it to the first time: the code def window
previews the source code specified by my implementation of
IVsCodeDefViewContext. However, subsequent calls to IVsCodeDefViewContext do
nothing. Can someone provide an example or some instructions on how I should
use these two interfaces to repeatedly preview source code? Thanks.
"Gary Chang[MSFT]" - 31 Aug 2005 10:20 GMT
Hi Parag,

Currently, we are looking into this problem. We will update you as soon as
we get anything out.

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
"Gary Chang[MSFT]" - 01 Sep 2005 03:51 GMT
Hi Parag,

I have consulted this issue with our corresponding develop team members,
their opinion is as follows:

There may be misunderstanding, it sounds as if you are implementing the
IVsCodeDefView interface, which should only be implemented by the Code Def
Win service.

The Code Def Win is available as a service which implements IVsCodeDefView.
VSCore implements this service (and interface).  The service can be
obtained using QueryService(SID_SVsCodeDefView).  Those who want to push
context to the Code Def Win need to implement a context object, which
implements IVsCodeDefViewContext, and hand it to the service using
IVsCodeDefView::SetContext(pIVsCodeDefViewContext).  They push context in
this manner whenever it changes, for example on selection or insertion
point change in the editor.

If the Code Def Win UI (tool window) is visible, every idle it checks
whether there is a new context pushed to the service.  If so, it picks up
the latest context and presents it.  If you are pushing context as
described above and the context is not changing, it is possible that
something is starving the Code Def Win UI of idle processing time.

Wish it helps!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Parag Chandra - 01 Sep 2005 14:49 GMT
Ah, that clears things up considerably. Thanks for looking into this.

> Hi Parag,
>
[quoted text clipped - 35 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
"Gary Chang[MSFT]" - 02 Sep 2005 06:05 GMT
That's OK, Parag, have a nice weekend:)

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "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.