Click here to Skip to main content
11,632,778 members (86,064 online)
Click here to Skip to main content
Add your own
alternative version

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

, 20 Dec 2003 51.3K 993 38
Create a fully integrated document window inside the Visual Studio IDE.
- File Name: ClassFactory.h
- Date: 12/7/2003 6:10:01 PM
- Author: Michael Sheinin
- Description : 
	Declaration of CClassFactory class implementing IClassFactory wrapper
	for the object returned by the original bined package.
- Notes: 
	For some reason class factory object refernce count does not reach 0,
	so the created object does not release its memory.

#pragma once

#include <unknwn.h>

class CVsPackage;

class CClassFactory : public IClassFactory
	void Attach( IClassFactory* pCF );
	// IUnknown
	STDMETHODIMP_(ULONG) Release(void);
	// IClassFactory
	STDMETHODIMP CreateInstance( IUnknown * pUnkOuter, REFIID riid, void ** ppvObject );
	STDMETHODIMP LockServer( BOOL fLock );
	IClassFactory*	m_pRealObject;
	CVsPackage*		m_pPackage;

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.


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


About the Author

Michael Sheinin
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.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150728.1 | Last Updated 21 Dec 2003
Article Copyright 2003 by Michael Sheinin
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid