Question regarding FiSH.dll and pinvoke

Announcements and discussion for PInvoke

Moderators: Luke Jefferson, Robert

Question regarding FiSH.dll and pinvoke

Postby ravedome » Thu Jan 21, 2010 12:48 pm

Hey,

I got FiSH.dll to encrypt/decrypt blowfish messages but I can't call it from C#.

The signature is as follows:

Code: Select all
FiSH_encrypt_msg(HWND mWnd, HWND aWnd, char *theData, char *params, BOOL show, BOOL nopause)


I tried the following:
Code: Select all
        [DllImport("FiSH.DLL")]
        public static extern String FiSH_encrypt_msg(
            System.IntPtr mWnd,
            System.IntPtr aWnd,
            StringBuilder data,
            StringBuilder param,
            Boolean show,
            Boolean nopause);


I keep getting the read/write memory error.

Anyone got any ideas on how to call this dll method?

Thanks[/code]
ravedome
 
Posts: 1
Joined: Thu Jan 21, 2010 12:42 pm

Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 0 guests