Itβs better to solve this problem, itβs not so difficult here, I mentioned some of the methods, it can be just like some of my friends mentioned above. I work with the PCSC Smartcard application, which I spend about one week, is angry, many changes finally got solutions.
For me, his work with the PInvoke Extension, which I installed for VS2010, you can download here here http://www.red-gate.com/products/dotnet-development/pinvoke/
Download it and install it, close the visual studio and open it again, you can find the extension in the menu bar. 
If the error is due to the fact that the signature does not match you, just click on PInvoke.net> Insert PInvoke Signatures
The new window will look like this: 
Enter the dll name and click on the search, you will see all the functions of this DLL in the search results window. Click on the function in which you will receive a signature for this particular function.
Use this signature, and you need to change your programs in accordance with this Subscription, mainly a data type.
This solves my problem, you may have different problems, such as callConvention or additional attributes that must be specified when importing dll.
Happy coding. Be healthy!
Vijay Kumbhoje Sep 04 '14 at 10:21 2014-09-04 10:21
source share