Function dll C# in scripts ( Msg+ ) - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Function dll C# in scripts ( Msg+ ) (/showthread.php?tid=82058) Function dll C# in scripts ( Msg+ ) by melliott on 03-02-2008 at 01:40 PM
Hi, RE: Function dll C# in scripts ( Msg+ ) by Spunky on 03-02-2008 at 05:43 PM
You want to take a look at Interop.Call: quote: code: The return value is whatever the function returns. Example: code: RE: Function dll C# in scripts ( Msg+ ) by ShawnZ on 03-02-2008 at 07:43 PM
quote: no, he doesn't. RE: Function dll C# in scripts ( Msg+ ) by roflmao456 on 03-02-2008 at 10:38 PM
isn't it Interop.Call2 ? quote: RE: Function dll C# in scripts ( Msg+ ) by deAd on 03-02-2008 at 10:48 PM
Interop::Call can also call from custom libraries, the only difference is that Interop::Call2 returns a string. RE: Function dll C# in scripts ( Msg+ ) by ShawnZ on 03-02-2008 at 10:53 PM
quote: no, because neither of them work on .NET libraries. besides, call and call2 do the same thing, except call2 is for functions that return a string. RE: Function dll C# in scripts ( Msg+ ) by vikke on 03-02-2008 at 11:40 PM
C# is dotNet, which means that the executable-format is way different. It doesn't have anything such as exports, so you cannot use any Interop method to call it. DotNet is managed code, so you there's not a chance you can call it just like it would be native, but of course, there are workarounds. They're dirty, bad and they're called COM. |