VS wont load package
Good morning all,
I have a 2005B2 package written in VB, with a native sattelite dll. When I run my project in the experimental environment my command table is loaded (my menu item shows up), but when I click on it VS wont load my package. If I register the package to auto-load it loads fine on startup (I can break in Initialize()), so it seems that it is registered OK.
Anybody have any suggestions how I can troubleshoot this problem?
Here is my ctc file:
[removed]
NEWGROUPS_BEGIN
guidMyCmdSet:MyMenuGroup, guidSHLMainMenu:IDM_VS_MENU_TOOLS, 0x0600;
NEWGROUPS_END
BUTTONS_BEGIN
guidMyCmdSet:cmdidOpen, guidMyCmdSet:MyMenuGroup, 0x0100, OI_NOID, BUTTON, , "Do something";
BUTTONS_END
[removed]
[812 byte] By [
John_C] at [2007-12-16]
You can use the activity log when starting VS to help you debug this, using:
devenv /log
repro the scenario
close VSLook at the ActivityLog.xml file under Application Data\Microsoft\VisualStudio\8.0 and looking at the error.
Thanks for the suggestion, Phil.
Unfortunately the log doesn't show anything. No error, no mention of my package at all. How frustrating.
John
I would start by double checking that your package GUID is properly specified in your .CTC file. This is specified on the following line:
CMDS_SECTION guidYourPkg
where "guidYourPkg" is your package GUID. This defines that your package is the owner of the commands defined within the CTC file. The GUID needs to be defined in a header file that is included in your .ctc file (e.g. Guids.h); the GUID needs to be specified in the correct format. It should look something like the following:
#ifndef _CTC_GUIDS_
DEFINE_GUID(guidYourPkg, 0xD5FDCD3E, 0x5F93, 0x42C0, 0x84, 0x9A, 0xFA, 0x56, 0xEF, 0xB, 0x5B, 0x1D);
#else
// _CTC_GUIDS #define
guidYourPkg { 0xD5FDCD3E, 0x5F93, 0x42C0, { 0x84, 0x9A, 0xFA, 0x56, 0xEF, 0xB, 0x5B, 0x1D } } #endif
// _CTC_GUIDS_
Notice that the format for the CTC file is different than what the C++ compiler expects. Next you need to verify that this GUID value matches the GUID that is registered under "HKLM\Software\Microsoft\VisualStudio\8.0\Packages" for your package.