Detect Dlls dynamically and statically load it
-
is there any way that i can write a generalized program to dynamically detect any number of Dll in a folder and statically link them. upto now i have my application that statically links and implicitly loads the dlls. i will detect the newly added dlls and keeps information in File.The infor mation in the file and registry information is enough. The problem is how i can my appliation understand the new dlls, how can oi include the headerfiles. IS THERE ANY POSSIBILITY
-
is there any way that i can write a generalized program to dynamically detect any number of Dll in a folder and statically link them. upto now i have my application that statically links and implicitly loads the dlls. i will detect the newly added dlls and keeps information in File.The infor mation in the file and registry information is enough. The problem is how i can my appliation understand the new dlls, how can oi include the headerfiles. IS THERE ANY POSSIBILITY
As far as I know, this isn't possible. Static linking implies that all code be known and identified at link-time, static linking is effectivly dynamic linking with hidden 'glue' that uses staticly bound stubs to dispatch to the dll. This is possible and very simple to do with dynamic linking provided your class heirarchy supports it.