Click here to Skip to main content
14,208,504 members
Click here to Skip to main content
Add your own
alternative version


39 bookmarked
Posted 20 Dec 2003

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

, 20 Dec 2003
Create a fully integrated document window inside the Visual Studio IDE.
- File Name: VsDllIf.h
- Date: 12/10/2003 4:52:53 PM
- Author: Michael Sheinin
- Description : 
	The declaration of the CVsDllIf class. The class provides an object-
	oriented interface to the original "bined" package. It is responsible
	for loading the DLL file implementing the "bined" package as well as
	for delegating default functionality to the package.
- Notes: 

#pragma once

class CVsDllIf
	BOOL Initialize(void);
	void Uninitialize(void);
	HRESULT CanUnload(void);
	HRESULT GetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv);
	HRESULT RegisterServer(void);
	HRESULT UnregisterServer(void);
	HRESULT VSRegisterServer(void);
	HRESULT VSUnregisterServer(void);
	static HMODULE m_hDllThis;
	HMODULE LoadTargetDll();
	BOOL	m_bInitFailed;
	HMODULE m_hDll;
	typedef HRESULT (STDAPICALLTYPE *TFnDllCanUnloadNow)(void);
	TFnDllCanUnloadNow	 m_pfnDllCanUnloadNow;
	typedef HRESULT (STDAPICALLTYPE *TFnDllGetClassObject)(REFCLSID rclsid, REFIID riid, LPVOID* ppv);
	TFnDllGetClassObject	m_pfnDllGetClassObject;
	typedef HRESULT (STDAPICALLTYPE *TFnDllRegisterServer)(void);
	TFnDllRegisterServer	m_pfnDllRegisterServer;
	typedef HRESULT (STDAPICALLTYPE *TFnDllUnregisterServer)(void);
	TFnDllUnregisterServer	m_pfnDllUnregisterServer;
	typedef HRESULT (STDAPICALLTYPE *TFnVSDllRegisterServer)(void);
	TFnVSDllRegisterServer	m_pfnVSDllRegisterServer;
	typedef HRESULT (STDAPICALLTYPE *TFnVSDllUnregisterServer)(void);
	TFnVSDllUnregisterServer m_pfnVSDllUnregisterServer;

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.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web05 | 2.8.190612.1 | Last Updated 21 Dec 2003
Article Copyright 2003 by Michael Sheinin
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid