Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: add function to scriptengine

$
0
0
thanks but it desnt work correctly.

i use this:
var mf = new MethodFunc(me.Invoke);
se.AddHostObject(mi.Name, mf);
it throws an Comexception when i run the script who is calling the function via:
var host = new HostFunctions();
                ((IScriptableObject)host).OnExposedToScriptCode(e);
                var del = (Delegate)host.func<object>(p.Length, e.Script[func]);

                return del.DynamicInvoke(p); // here is the Exception
return filesize("Std.dll");

Viewing all articles
Browse latest Browse all 2297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>