PDA

View Full Version : Resources in dynamic libraries



seneca
19th January 2009, 18:26
By chance I noticed after refactoring a library into two different dll's that the resources included in the first dll (for example :/icons/test.png) are also available in the second dll (which is dependant from the first).

Now this seems a cool feature since I assumed resources would only be available for classes in the exe or dll that they were linked into. On the other hand this also raises question what happens if the same resource is linked into the second dll or the exe that is using it.

Does anybody have experience with this matter? Would "resource overloading" in case work consistently across platforms, or must I take case that every resource path ist unique, for examlpe as :/firstdll/icons/test.png and :/secondll/icons/test.png ?