By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,079 Members | 891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,079 IT Pros & Developers. It's quick & easy.

Plugin methods in (ANSI) C++ ?

P: n/a
Hi,

in Windows environment there are DLLīs /COM/DCOM/CORBAetc.
in Unix-environment are shared objects /CORBA to deal with plugins.

Is there something in the ANSI-Committee pipeline for such a topic ?

Background: We want to split a big application in several moduls. The
C++ inheritance should be intact over the plugin-interfaces like as C#
does. But we donīt want to switch to C#.

Any suggestions ?

Thanks,

Howie
Nov 3 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Howie wrote:
Hi,

in Windows environment there are DLLīs /COM/DCOM/CORBAetc.
in Unix-environment are shared objects /CORBA to deal with plugins.


It's going to be implementation defined. C++ doesn't deal with
linkage issues (dynamic or otherwise) really. By the way
you can do plugins just fine in both environments with shared
libraries (in UNIX speak) or DLL's (in Windows speak) without
resorting to COM or CORBA.

The implementation-specifics for C++ on these platforms invoke
the constructors of static objects when the library is dynamically
loaded. This can set up any information your plugin needs to do
to register itself with the application.
Nov 3 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.