Red Gate forums :: View topic - Question regarding FiSH.dll and pinvoke
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

Question regarding FiSH.dll and pinvoke

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
ravedome



Joined: 21 Jan 2010
Posts: 1

PostPosted: Thu Jan 21, 2010 12:48 pm    Post subject: Question regarding FiSH.dll and pinvoke Reply with quote

Hey,

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

The signature is as follows:

Code:

FiSH_encrypt_msg(HWND mWnd, HWND aWnd, char *theData, char *params, BOOL show, BOOL nopause)


I tried the following:
Code:

        [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]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group