[Help]Alittle help please(5165)

02/06/2011 11:06 coreymills#1
Quote:
A call to Pinvoke function 'ConquerSx.Native::memcpy' has unbalanced the stack. this is likly because the managed Pinvoke signature does not match the unmanaged target signature. check that the calling convention and parameters of the Pinvoke signature match the target unmanaged signature.
Code:
Native.memcpy(p, p2, DataLen);
02/06/2011 11:21 §hift#2
It has been discussed Billion times, It has been Released also.
Replace your Native class with this one.
Code:
public unsafe class Native
    {
        [DllImport("kernel32.dll")]
        public static extern IntPtr GetStdHandle(uint nStdHandle);
        [DllImport("kernel32.dll")]
        public static extern bool SetConsoleTextAttribute(IntPtr hConsoleOutput, int wAttributes);
        [DllImport("msvcrt.dll", EntryPoint = "memcpy", CallingConvention = CallingConvention.Cdecl, SetLastError = false)]
        public static extern unsafe void* memcpy(void* dest, void* src, uint size);
        [DllImport("user32.dll")]
        public static extern int MessageBox(int h, string m, string c, int type);
        [DllImport("winmm.dll")]
        public static extern uint timeGetTime();
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_set_key(IntPtr _key, int len, byte[] data);
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_ecb_encrypt(byte[] in_, byte[] out_, IntPtr schedule, int enc);
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_cbc_encrypt(byte[] in_, byte[] out_, int length, IntPtr schedule, byte[] ivec, int enc);
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_cfb64_encrypt(byte[] in_, byte[] out_, int length, IntPtr schedule, byte[] ivec, ref int num, int enc);
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_ofb64_encrypt(byte[] in_, byte[] out_, int length, IntPtr schedule, byte[] ivec, out int num);
    }
AND BY THE WAY , CONQUER-SX SUCKS!
02/06/2011 11:23 coreymills#3
i know but i like 5165 and sql sources
02/06/2011 11:27 §hift#4
Quote:
Originally Posted by coreymills View Post
i know but i like 5165 and sql sources
Use Impulse's then :)
02/06/2011 11:29 coreymills#5
the link for his source was romoved
#requestClose
Problem solved