C++ 也可以通过这个设置。我特别建议您编辑.pkgdefs、.vsixmanifests等 class ATL_NO_VTABLE CYHMExtensionsPackage : public CComObjectRootEx<CComSingl
也可以通过这个设置。我特别建议您编辑.pkgdefs、.vsixmanifests等C++ 也可以通过这个设置。我特别建议您编辑.pkgdefs、.vsixmanifests等 class ATL_NO_VTABLE CYHMExtensionsPackage : public CComObjectRootEx<CComSingl,c++,visual-studio,vspackage,C++,Visual Studio,Vspackage,也可以通过这个设置。我特别建议您编辑.pkgdefs、.vsixmanifests等 class ATL_NO_VTABLE CYHMExtensionsPackage : public CComObjectRootEx<CComSingleThreadModel>, public CComCoClass<CYHMExtensionsPackage, &CLSID_YHMExtensions>, // Provides the imple
class ATL_NO_VTABLE CYHMExtensionsPackage :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CYHMExtensionsPackage, &CLSID_YHMExtensions>,
// Provides the implementation for IVsPackage to make this COM object into a VS Package.
public IVsPackageImpl<CYHMExtensionsPackage, &CLSID_YHMExtensions>,
public IOleCommandTargetImpl<CYHMExtensionsPackage>,
// Provides consumers of this object with the ability to determine which interfaces support extended error information.
public ATL::ISupportErrorInfoImpl<&__uuidof(IVsPackage)>
{
public:
// Provides a portion of the implementation of IUnknown, in particular the list of interfaces
// the CYHMExtensionsPackage object will support via QueryInterface
BEGIN_COM_MAP(CYHMExtensionsPackage)
COM_INTERFACE_ENTRY(IVsPackage)
COM_INTERFACE_ENTRY(IOleCommandTarget)
COM_INTERFACE_ENTRY(ISupportErrorInfo)
END_COM_MAP()
VSL_DECLARE_NOT_COPYABLE(CYHMExtensionsPackage)
public:
CYHMExtensionsPackage():m_dwEditorCookie(0), m_MyToolWindow(GetVsSiteCache())
{
GetYHMVSSolution();
}
~CYHMExtensionsPackage()
{
}
...
};
void PostSited(IVsPackageEnums::SetSiteResult /*result*/)
{
Sleep(2500);//initilialize will sleep for some time
}
[$RootKey$\AutoLoadPackages\{f1536ef8-92ec-443c-9ed7-fdadf150da82}]
"{03be14ec-1a85-4c5c-a1f4-723d189c2e4c}"=dword:00000000