Source 5522 + key error: \

10/30/2011 17:26 buer157#1
I'm having a problem at source, is usually set up, patch and everything, but when I log in it will walk to C # with the following error

[Only registered and activated users can see links. Click Here To Register...]
10/30/2011 18:28 abdeen#2
I think it`s your .Net Frame Work, right click on project then choose properties
then check what version of .Net Frame Work and install it , lets give it a try .
10/30/2011 18:30 Korvacs#3
Nope its because you havent correctly defined the pinvoke for that method, it even states it in the error message, if you have a search for pinvoke signatures in release i informed people how to fix this.
10/30/2011 19:58 buer157#4
Quote:
Originally Posted by abdeen View Post
I think it`s your .Net Frame Work, right click on project then choose properties
then check what version of .Net Frame Work and install it , lets give it a try .
i have all netframes , the problem still persists
10/30/2011 20:05 jackpotsvr#5
Quote:
Originally Posted by buer157 View Post
i have all netframes , the problem still persists
Then read what Korvacs wrote?
10/30/2011 22:12 buer157#6
i fixed !.

Play Conque.....exe , no F5 c#
10/30/2011 23:07 mohamedmashhot#7
open form bin/debug
not from source
10/31/2011 15:00 F i n c h i#8
Replace the whole void (public class Blwfish : IDisposable) with this:
Code:
public class Blowfish : IDisposable
    {
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void CAST_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 CAST_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);

        [StructLayout(LayoutKind.Sequential)]
        struct bf_key_st
        {
            [MarshalAs(UnmanagedType.ByValArray, SizeConst = 18)]
            public UInt32[] P;
            [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)]
            public UInt32[] S;
        }
10/31/2011 15:07 Korvacs#9
Thats what you would have found if you had searched :p
10/31/2011 19:55 abdeen#10
they must add a comment when you starting new thread with rules like release section .