News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How to make one plugin with cbToolPlugin and cbMimePlugin features?

Started by techtonik, September 21, 2008, 12:11:39 PM

Previous topic - Next topic

techtonik

I need to make a plugin called from Plugins menu entry and also open certain file extensions. Is there a way to make one class which will be of both cbToolPlugin and cbMimePlugin types simultaneously?

Wolf

Quote from: techtonik on September 21, 2008, 12:11:39 PM
I need to make a plugin called from Plugins menu entry and also open certain file extensions. Is there a way to make one class which will be of both cbToolPlugin and cbMimePlugin types simultaneously?
I guess you could have two base classes.

class MyPlugin : public cbToolPlugin, public cbMimePlugin
{
};


There is surely a better way to do it, but I do not know the Code::Blocks SDK enough.