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

Tip: Looking for answers? Try searching our database.

UICONTEXT_SolutionExists - can't find with VSIP Extras

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Keith Hill - 23 Aug 2004 20:51 GMT
The section from a CTC file used to work just fine on an older ATL
implementation of a VSPackage:

VISIBILITY_SECTION
   // Command                                   GUID when visible
guidFooMenuGrp:IDM_TLB_FOO, UICONTEXT_NoSolution;
guidFooMenuGrp:IDM_TLB_FOO, UICONTEXT_SolutionExists;
guidFooMenuGrp:IDM_TLB_FOO, UICONTEXT_EmptySolution;
VISIBILITY_END

However with the VSIP extras implementation I get the following CTC compiler
error:

c:\Foo\pkgcmd.ctc(101): error CTC3072: VISIBILITY: Missing or invalid
command guid/id pair

This corresponds to the line with UICONTEXT_SolutionExists and indeed if I
comment out that line, the compile works.  I have checked the vshshlids.h
file and a guid definition exists for UICONTEXT_SolutionExists.  What gives?

--
Keith
Allen Denver [MS] - 26 Aug 2004 00:05 GMT
The problem is in vsshlids.h where UICONTEXT_SolutionExists is defined, but
with an erroneous ';' at the end of the line.  This causes a problem with the
CTC compiler.

The workaround is for you to define your own symbol (like
MyUICONTEXT_SolutionExists) with the same GUID value as the original and use
that in your CTC.  Your definition should be similar to the guids you define
in your GUIDS.H file for the CTC relative cmd groups, etc.  Like so:

#else // _CTC_GUIDS

// YOUR GUIDS HERE

#define MyUICONTEXT_SolutionExists { 0xf1536ef8, 0x92ec, 0x443c, { 0x9e,
0xd7, 0xfd, 0xad, 0xf1, 0x50, 0xda, 0x82 } }

#endif // _CTC_GUIDS_

Many thanks to Keith for stumbling on this issue.  We're going to fix this
for Whidbey.

[This post is provided "AS IS" with no warranties, and confer no rights.]

> The section from a CTC file used to work just fine on an older ATL
> implementation of a VSPackage:
[quoted text clipped - 18 lines]
> --
> Keith

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.