Reputation: 64266
I'm going to make my application extensible. Where I can read information about writing programs which support plugins? C++
Upvotes: 0
Views: 224
Reputation:
your best bet is looking at something like Lua. It will allow you to have cross platform plugins and load code without having to start and restart your application. Dynamic code loading in C++ is very platform specific and non-portable without a tremendous amount of work.
Upvotes: 1
Reputation: 111120
A plug-in architecture is what you need to look-up and read about. A SO answer will not help beyond providing a few stray links. I'll try to explain as briefly as I can: Typically, plug-ins are a set of dynamic libraries that the host application loads (usually at start up, sometimes delay loaded for efficiency purposes). They then become part of the application and behave as if they were a native/core component. Hence, you need to rethink about your application's architecture and module design as well. Here are a set of questions you'll need to answer:
Upvotes: 1