Sergey
Sergey

Reputation: 11918

Platform invocation services for .NET

Is there any better way to load and use functions from a DLL file in .NET (C#) than by using so-called P/Invoke?

If the DLL file contains functions that were written using JNI is there still a way to use them in .NET?

Upvotes: 1

Views: 99

Answers (1)

David Heffernan
David Heffernan

Reputation: 613053

For native DLLs your options are P/invoke or COM. The latter is easier once you have got over the not insignificant hurdle of making a COM server.

Upvotes: 2

Related Questions