Click here to Skip to main content
15,897,187 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.6K   3.3K   104  
An article on installing a menu interface for a load-on-demand DLL.
================================================================================
    TestPlugin Project Copyright 2005 by Michael Bergman
    
You may freely use the enclosed code except for your project or your company's 
project. You may not distribute the source code without my copyright notices.
================================================================================

================================================================================
    MICROSOFT FOUNDATION CLASS LIBRARY : TestPlugin Project Overview
================================================================================

AppWizard has created this TestPlugin DLL for you.  This DLL not only
demonstrates the basics of using the Microsoft Foundation classes but
is also a starting point for writing your DLL.

This file contains a summary of what you will find in each of the files that
make up your TestPlugin DLL.

TestPlugin.vcproj
    This is the main project file for VC++ projects generated using an Application Wizard. 
    It contains information about the version of Visual C++ that generated the file, and 
    information about the platforms, configurations, and project features selected with the
    Application Wizard.

TestPlugin.h
    This is the main header file for the DLL.  It declares the
    CTestPluginApp class.

TestPlugin.cpp
    This is the main DLL source file.  It contains the class CTestPluginApp.
TestPlugin.rc
    This is a listing of all of the Microsoft Windows resources that the
    program uses.  It includes the icons, bitmaps, and cursors that are stored
    in the RES subdirectory.  This file can be directly edited in Microsoft
    Visual C++.

res\TestPlugin.rc2
    This file contains resources that are not edited by Microsoft 
    Visual C++.  You should place all resources not editable by
    the resource editor in this file.

TestPlugin.def
    This file contains information about the DLL that must be
    provided to run with Microsoft Windows.  It defines parameters
    such as the name and description of the DLL.  It also exports
    functions from the DLL.

/////////////////////////////////////////////////////////////////////////////
Other standard files:

StdAfx.h, StdAfx.cpp
    These files are used to build a precompiled header (PCH) file
    named TestPlugin.pch and a precompiled types file named StdAfx.obj.

Resource.h
    This is the standard header file, which defines new resource IDs.
    Microsoft Visual C++ reads and updates this file.

/////////////////////////////////////////////////////////////////////////////
Other notes:

AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.

/////////////////////////////////////////////////////////////////////////////

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