DllImport after VS 2003 to VS 2010 migration

After you convert VS 2003 to VS 2010 and you run , you get pInvoke has unbalanced stack error.


To solve this go to DllImport function and add CallingConvention = CallingConvention.Cdecl to the dllImport calling parameter.. Now it works.. 

No comments:

Post a Comment

Pages