Click here to Skip to main content
15,880,796 members
Articles / Programming Languages / C++

Customized Visual Studio .NET package: your fully integrated document window inside the IDE

Rate me:
Please Sign up or sign in to vote.
4.72/5 (20 votes)
20 Dec 200313 min read 63.6K   1.1K   39  
Create a fully integrated document window inside the Visual Studio IDE.
#pragma once


//#include "ProxyStub.h"
#include <unknwn.h>


const GUID IID_IVsRegisterEditors = {0x78036A8D,0xA04C,0x43E4,0x8B,0xC0,0x84,0x6E,0x63,0xAF,0xA9,0xA2};

/*
DECL_PROXY_START(CVsRegisterEditors,5)
// here any additional data members may be declared
//	DECL_STUB(3)
	STDMETHODIMP RegisterEditor( REFIID riid, void* pObj, DWORD* dwCookie );
	//DECL_STUB(4)
	STDMETHODIMP NoName( void* pSmth );
DECL_PROXY_END()
*/

interface IVsRegisterEditors : public IUnknown
{
	virtual STDMETHODIMP QueryInterface(REFIID riid, void **ppObj) = 0;
	virtual STDMETHODIMP_(ULONG) AddRef() = 0;
	virtual STDMETHODIMP_(ULONG) Release() = 0;
	virtual STDMETHODIMP RegisterEditor( REFIID riid, void* pObj, DWORD* dwCookie ) = 0;
	virtual STDMETHODIMP NoName( void* pSmth ) = 0;
};

class CVsRegisterEditors : public IVsRegisterEditors
{
public:
	CVsRegisterEditors(){ m_pRealObject = NULL; };
	~CVsRegisterEditors(){};
	BOOL Attach( IVsRegisterEditors* pObj );
	STDMETHODIMP QueryInterface(REFIID riid, void **ppObj);
	STDMETHODIMP_(ULONG) AddRef();
	STDMETHODIMP_(ULONG) Release();
	STDMETHODIMP RegisterEditor( REFIID riid, void* pObj, DWORD* dwCookie );
	STDMETHODIMP NoName( void* pSmth );

	IVsRegisterEditors* m_pRealObject;
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
For the last 7 years I have developed software in real-time/embedded and MS-Windows environments for military and civil markets. I hold B.Sc. degree in computer engineering. Living in Ontario, Canada, I like hiking and traveling in general. Currently, I'm looking for employment opportunity inside the GTA.

Comments and Discussions