Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

INVERSED

plug-ins

This topic is 6878 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Two ways:

Hard: Create/register a COM interface/category/class factory that will contain the interface used to activate the plug-in. Then use COM API calls to enumerate the plugins available on the system and CoCreateInstance to instantiate them.

Easy: Specify a particular directory for plugins and specific exported functions to activate the plugins. Then use LoadLibrary(Ex) to load the libraries.

Share this post


Link to post
Share on other sites
Advertisement
I'm working on an app that I would like to make extendable with plug-ins in dlls. My question is how do I get my app to look for and load dlls that it doesn't even know are going to be there?

Share this post


Link to post
Share on other sites
you can get all the files in a directory by using FindFirstFile and FindNextFile, then try to LoadLibrary on all. i recommend just exporting functions, writing a COM interface is too much, unless you want to make it scriptable with JavaScript, VBScript with IActiveScript

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!