R
Ross O'Neill
Hi,
I was trying to learn more about when to use P/Invoke vs. Interop. The
book I am reading says use P/Invoke when I am calling unmanaged Windows
API function. Is P/Invoke only used with unmanaged API functions, or
could I use Interop instead? To my understanding I could use Interop
all the time but the advantage of P/Invoke is for performance reasons
since it does not do type checks, etc. Am I correct?
Thanks
Ross
I was trying to learn more about when to use P/Invoke vs. Interop. The
book I am reading says use P/Invoke when I am calling unmanaged Windows
API function. Is P/Invoke only used with unmanaged API functions, or
could I use Interop instead? To my understanding I could use Interop
all the time but the advantage of P/Invoke is for performance reasons
since it does not do type checks, etc. Am I correct?
Thanks
Ross