Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop
Title: plugin-src Download
 Description: Now, lets say that you are making a program, maybe a game, and you decide that you want to make it moddable without your intervention. Now, of course, you think of how that might be possible, and without forcing the users to inject code directly into your executable, or modifying the source code directly. How would you do this? Well, of course, the answer is a plugin system. I ll briefly explain how it works: A plugin system is simply where a specified folder is searched for DLLs (or the like), and if any are found, adds the contents to the program. Of course, because the program doesn t actually know what is in the DLLs, the normal way is for the DLL s to define a set entry point and calling functions defined by the program itself, which can then use the functionality exposed in those DLLs. The way this can be done is up to you, whether defining functions to implement or maybe getting the DLL to provide an instance of a base class, and then use the functionality from that. In this
 Downloaders recently: [More information of uploader figo]
 To Search:
File list (Check if you may need any files):
 

plugin-src
..........\main.cpp
..........\main.hpp
..........\Makefile
..........\test1.cpp
..........\test2.cpp
..........\test3.cpp
    

CodeBus www.codebus.net