Plugin-based application

Hi.
How to create a plugin-based application in standard c++?
I use GCC.

Thanks
First make the application, and then come up with a way for it to use plug-ins, and then make the plug-ins.

Seriously, this is such a broad question that you might as well ask "how do I make a picture" or "how do I make sound".

What do you mean by plug-in?
I don't know how to implement second and third steps. (using and making plug-ins)
I mean creating a program and after that, create some sort of files that program can recognize it as a plug-in.
I 'm thinking about trying to implement a plugin system for my media player sometime in the near future.

I'm probably going to use GModule.

Description
These functions provide a portable way to dynamically load object files (commonly known as 'plug-ins'). The current implementation supports all systems that provide an implementation of dlopen() (e.g. Linux/Sun), as well as HP-UX via its shl_load() mechanism, and Windows platforms via DLLs.


http://developer.gnome.org/glib/2.32/glib-Dynamic-Loading-of-Modules.html
Last edited on
Thank you iseeplusplus. That's a wonderful solution.
Topic archived. No new replies allowed.