Tanmay Sarkar
posted
194 posts
since
May 28, 2010
from
India
|
|
Re: managed pinvoke signature does not match
|
|
|
|
|
|
|
|
|
|
|
I got the solution,
[DllImport("MyDll.dll", CallingConvention = CallingConvention.Cdecl)] public static extern int add(int a,int b);
this is work in framework 4. And now there is no exception. It well work now.
Thank you!
|
|
|
|
|
|
hatake kakashi
posted
1 posts
since
Sep 01, 2010
from
|
|
Re: managed pinvoke signature does not match
|
|
|
|
|
|
|
|
|
|
|
Hi Tanmay Sarkar,
Thank you very much for your own answer to your problem :D. I have the same problem as yours, and it has driven me crazy for a whole day.
I register an account at this forum just to say thank you :)
Best regards,
Kakashi
|
|
|
|
|
|
Tanmay Sarkar
posted
194 posts
since
May 28, 2010
from
India
|
|
Re: managed pinvoke signature does not match
|
|
|
|
|
|
|
|
|
|
|
Thanks Kakashi,
that problem can really make any body to crazy, while it well work in framework 3.5 but not work in 4.
Welcome to this forum, enjoy it.
Thank You! :)
|
|
|
|
|
|