E
Ed
Hello, dear all,
I often see these two import usage in the code. Both are the interface
to use the Dll library. I think they are the same.
Normally P/Invoke means using the [DllImport ....] to import the
dll. But I have some confusion about them.
1. Is the "_declspec(dllimport)" also one of the forms of P/Invoke?
2. From performance aspect, which way is more better?
3. What's the difference of them.
Thank you in advance!
I often see these two import usage in the code. Both are the interface
to use the Dll library. I think they are the same.
Normally P/Invoke means using the [DllImport ....] to import the
dll. But I have some confusion about them.
1. Is the "_declspec(dllimport)" also one of the forms of P/Invoke?
2. From performance aspect, which way is more better?
3. What's the difference of them.
Thank you in advance!