Click here to Skip to main content
15,886,362 members
Articles / Desktop Programming / MFC

Plug-in DLLs and Menu Interfaces

Rate me:
Please Sign up or sign in to vote.
4.76/5 (20 votes)
14 Sep 2005CPOL5 min read 78.5K   3.3K   104  
An article on installing a menu interface for a load-on-demand DLL.
// TargetApp.h : main header file for the TargetApp application
//
/*
** Copyright 2005 by Michael Bergman
** See the enclose ReadMe.txt file for terms 
** conditions. 
*/

#pragma once

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols


// CTargetAppApp:
// See TargetApp.cpp for the implementation of this class
//

class CTargetAppApp : public CWinApp
{
public:
	CTargetAppApp();

#ifndef _PLUGIN_ON_DEMAND
protected:
	HMODULE m_TestModule ; 
public:
	HMODULE GetPluginHandle() { return m_TestModule ; }
#endif

// Overrides
public:
	virtual BOOL InitInstance();

// Implementation
	afx_msg void OnAppAbout();
	DECLARE_MESSAGE_MAP()
	virtual int ExitInstance();

};

extern CTargetAppApp theApp;

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions