Writing Plugins in C
Morning, can anyone help me with the following problem.
I'm trying to write an application (in C) which will provide support for a selection of internally developed plugins (each plugin will support exactly the same no. of methods so the application doesn't need any prior knownledge that a plugin exists). However after a quick search around the internet I found absolutly nothing on the topic of how to do this, generally sites only cover how to develop plugins for already available applications.
Can anyone point me in the right direction (source code is preffarble if possible) on how to create an application which can load its own specifically designed plug-ins and execute them. I'm currently following a similar design to the visual plugins (plugins are written as dll files) that Winamp uses however obviously without the source code to winamp I dont know how I can load in the plugins and execute the contained methods.
Thanks in advance Kiel.
I'm not exactly sure what you want to do, but dynamically-loaded dlls might do the trick?
I'm doin some audio plugs right now that uses this method..
What I'm trying to do is create an application which supports its own standard of plugins, however I dont know how this can be done. I'm sorta following a similar method to winamp's visual plugins but without knowing how winamp loads the plugins I'm a bit stuck.
Do you have any ideas how I can do this?
I dont know anything about winamp plugins except that they're
dlls loaded dynamically when you start the program..that's maybe
the best way to make you host aswell...?
A better question to ask would be how do I dynamically load a dll file then?
he..now we're getting somewhere ;)
the best way might be to check some tutorials:
this one was posted on this board some days ago..
It's compact but kinda good I guess..
You would want the last section where they use LoadLibrary()
(assuming you're on windows)