I've come to a point where I want to have code that can be easily patched and replaced. (the program should load the file in the same directory as it, then use the code inside the file! Which is what modulization means to me, sorry if I used the wrong word).
Now I've been searching for a way to do this for a while now...
An example would be a Dynamic Link Library (.dll). But it doesn't entirely suit me - it requires a complete declaration of the class I want to use ahead. Including attributes and methods.
So here I am wondering if this is even possible, and if so how.
Here is an example of what I would like to do:
//inside linked file - header
testClass(int newI); //set i
int getInt(); //gets current value of I
//inside linked file - source
i = newI;
//inside application - header
//Code to load code from linked file
load class testClass;
//inside application - source
cout << me.getInt() << endl;