Click here to Skip to main content
16,016,759 members
Articles / Desktop Programming / MFC
Article

How to create and support Plugins

Rate me:
Please Sign up or sign in to vote.
1.55/5 (34 votes)
4 Mar 2004 42.7K   1.8K   24   4
It demonstrates how to use plugins and how to create them in VC++.

Introduction

This text is meant for those who are thinking of supporting plugins in their applications. Now what is a plugin? I have tried to find some solutions on net and have got a conclusion that these are only dlls which have to support some format. Eg. I have one application to call functions which are not known at compile time. Possible solution is to load function from a Dll using GetProcAddress ( win32 API ). Before that there must be some set of functions which are always sure to be there in dll. I have two. 1) GetFunctionCount() return count of functions 2) GetFunctionNames(LPCTSTR *s_fn_names) copies function names Now These functions are responsible to return enough information to be used for making calls to functions at runtime. Read the rest in code itself. It's easy to understand source code.

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
France France
C,C++,MFC,COM,ATL,Mathematics,Simulation

Comments and Discussions

 
GeneralInteresting! Pin
kj_kho21-Dec-06 18:47
kj_kho21-Dec-06 18:47 
GeneralPretty neat ! Pin
WREY14-May-04 11:14
WREY14-May-04 11:14 
This is a neat little tool to have around in the sense that it doesn't possess everything for everybody. Viewed as a good starting point, one can customize it by adding functionalities to it to achieve the level to which he/she desires to take it.

It is not a "one stop possess all" type tool, but it offers the means to be customized to be something more sophisticated for the individual developer.

I believe it was judged too harshly based purely on the brevity of its write-up. Afterall, it's classified for Beginners and sometimes beginners don't need something prolific that would overwhelm them, particularly if source code was provided to supplement their learning curve.

It doesn't have the quality of a '5', and so I gave it a '4'.

Wink | ;)

William

Fortes in fide et opere!
GeneralQuite short for an article Pin
Patje8-Mar-04 3:48
Patje8-Mar-04 3:48 
GeneralThis isn't an article Pin
KevinHall5-Mar-04 4:52
KevinHall5-Mar-04 4:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.