[RESOLVED] Linking at runtime?
I am writing a physics simulator with a controler as main program and the physical systems as classes in dlls. To compile the main program I must have the systems in my reference list. Each time I add a new system, I must compile the main program anew.
Now I would like to be able to add new systems without recompiling the main program each time. To do so, 2 problems must be solved:
1. The new systems must be linked at runtime. Is that possible?
2. When I compile the main program I still don't know the name of the classes, the additional dlls will implement. Let's say that the first point is solved. At runtime I look what dlls are in a certain directory and I can link them somehow. One of it has the name 'pendulum.dll' and from that I gess that it implements a class type with the same name. So I have a string with the value "pendulum". How do I transform this in a codeline like:
'pendulum sys = new pendulum()'?