If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
So far this is what I have done:
1. Made A plugin Interface that have common methods (getName,et al). Each plugin constructor receives pointer to IManager.
2. The Manager Interface have virtual Methods for accessing Application resources.
I have two problems:One is how to Integrate IManager interface with application itself (i.e. wxFrame) and second one is that I need to add one method that will return the instance of plugins. something like:
//Every dll must contain at least this function
typedef IPlugin* (*GET_PLUGIN_CREATE_FUNC) (IManager*);
typedef PluginInfo (*GET_PLUGIN_INFO_FUNC) ();
typedef int (*GET_PLUGIN_INTERFACE_VERSION_FUNC) ();
Thanks!
Chief Justice: We have trouble dear citizens! Citizens: What it is his honor? Chief Justice:Our president is an atheist, who will he swear to?
I'm now almost done!
The final stage is connecting event that seems not to work.
I can hook the Menu Item to Tools Menu and in my plugin I have something like:
But it doesn't work. ID_PLUGIN_TEST is defined in Enum of my personal IDs so it should not be the issue as all other works. I guess I mess somewhere with event sinking.
Thanks
Chief Justice: We have trouble dear citizens! Citizens: What it is his honor? Chief Justice:Our president is an atheist, who will he swear to?