I notice in the MSDN documentation that there are multiple ways to declare a reference to a function in an external DLL from within a VB.NET program.
The confusing thing is that MSDN claims that you can only use the DllImportAttribute class with Shared Function prototypes "in rare cases", but I couldn't find the explanation for this statement, while you can simply use the Declare
keyword instead.
Can any of the .NET gurus explain to me why these are different, and where I would appropriately use each case? I greatly appreciate the help :)