EDN Admin
Well-known member
Hi, this is not a question about how to use DLLs, but how DLLs work. That is, when I build a DLL library and compile I get a DLL file. Well, in Visual Studio, I could add a reference to this DLL file and intellisense would start showing the classes inside
the DLL as if the code in the DLL was like in a static library. Well how can that be? I mean DLLs are compiled files and I though compiled files are enigmatic things that cannot be decrypted. I mean look at the unmanaged libraries. You need to use [DLLImport("library.dll)]
to be able to use them and even then, you have to cross your fingers that you didnt make a typo with the class name because Intellisense wont tell you. How come DLLs written in C# do not need that? Well, obviously, there is a difference between the managed
DLLs and unmanaged ones, but Im curious to know, what exactly has changed in the internal structure of those DLLs to make them so different.
View the full article
the DLL as if the code in the DLL was like in a static library. Well how can that be? I mean DLLs are compiled files and I though compiled files are enigmatic things that cannot be decrypted. I mean look at the unmanaged libraries. You need to use [DLLImport("library.dll)]
to be able to use them and even then, you have to cross your fingers that you didnt make a typo with the class name because Intellisense wont tell you. How come DLLs written in C# do not need that? Well, obviously, there is a difference between the managed
DLLs and unmanaged ones, but Im curious to know, what exactly has changed in the internal structure of those DLLs to make them so different.
View the full article