Is there a way to save a function pointer or a whole class (variables, members, methods and all) using C++ or C. I was just wondering because I saw this interesting tutorial on this site about modular programming. I was wondering if it was possible to load a file that would hold a function or a class rather than a dll. I think this would allow the program to remain more platform independant.
I saw a tutorial on the web that I found through google, but I can't seem to find it anywhere now --this was a while ago.
Thanks in advance for any input offered.