PInvoke Call Bug (Hybird's Source Bug)

06/08/2011 21:00 BaussHacker#16
Quote:
Originally Posted by Kiyono View Post
Just saying but it's non-redistributable so wouldn't it be against the rules on this forum?


It should work.
Well I will just remove the link then.
06/08/2011 21:46 _DreadNought_#17
Quit why you can.
06/08/2011 22:23 Pro4Never2#18
would you please guys stay in "helping me" because i used these things and i didn't work, i really wanna try this source please !
06/08/2011 23:42 Korvacs#19
Quote:
Originally Posted by Kiyono View Post
Oh, I had the exact same problem a while ago, go to your dllimport thingy and look for something like this:
[DllImport("nameofdllwithproblem")]
And change it to:
[DllImport("nameofdllwithproblem", CallingConvention = CallingConvention.Cdecl)]
Oh just to say, not every function within a .dll uses the same CallingConvention and setting it wrong can imbalance the stack which will result in a none recoverable exception.
06/08/2011 23:45 Kiyono#20
Quote:
Originally Posted by Korvacs View Post
Oh just to say, not every function within a .dll uses the same CallingConvention and setting it wrong can imbalance the stack which will result in a none recoverable exception.
Well I don't know anything about this subject, just re-posting stuff from another thread.