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 / November 2004

Tip: Looking for answers? Try searching our database.

IVsTextMarkerClient::GetMarkerCommandInfo issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael He - 21 Oct 2004 16:33 GMT
When I implemented IVsTextMarkerClient::GetMarkerCommandInfo Method
according to in instructions by Dr Ex
(http://blogs.msdn.com/dr._ex/archive/2004/06/09/152220.aspx), I noticed
the pbstrText and pcmdf passed in are all NULL. This prevents me from
providing my own context menu items. What can me wrong?

Thanks,

Michael

HRESULT GetMarkerCommandInfo (
   IVsTextMarker *pMarker,
   long iItem,
   BSTR *pbstrText,
   DWORD *pcmdf
);
Michael He - 02 Nov 2004 03:46 GMT
> When I implemented IVsTextMarkerClient::GetMarkerCommandInfo Method
> according to in instructions by Dr Ex
[quoted text clipped - 12 lines]
>    DWORD *pcmdf
> );

Answer my own question...

GetMarkerCommandInfo is first called with pbstrText and pCommandFlags
set to NULL. Just return S_OK so the IDE knows that the client support
this command. Then the IDE will allocate memory for pbstrText and
pCommandFlags and call again.

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.