Dynamically load an unmanaged dll from C#
I need to load dynamically an unmanaged dll with C#, so something like a program that accepts plugins.
This dll also have an abstract class that should be something like an interface, and his functions has to be called by C# part.
I know that in C# with managed dll you load it with Assembly.LoadFrom(), then you search with LINQ if there's that type of interface you're searching for, then if you find it you "select" it, and with Assembly.CreateInstance you create an object that is linked to the dll interface.
So how to do the same thing with an unmanaged dll?
Thnks.
I need to load dynamically an unmanaged dll with C#, so something like a program that accepts plugins.
This dll also have an abstract class that should be something like an interface, and his functions has to be called by C# part.
I know that in C# with managed dll you load it with Assembly.LoadFrom(), then you search with LINQ if there's that type of interface you're searching for, then if you find it you "select" it, and with Assembly.CreateInstance you create an object that is linked to the dll interface.
So how to do the same thing with an unmanaged dll?
Thnks.