Re: [Ironruby-core] Leveraging StdLib.Win32API class

2009-12-04 Thread James Leskovar
Hi Tomas, I've been playing around with DynamicMethod and generating IL at runtime, with varying levels of success. Currently I'm using DynamicMethod to generate the IL to load arguments, load function address, calli and ret. My script gets access to the DynamicMethod object, which gets passed

Re: [Ironruby-core] Leveraging StdLib.Win32API class

2009-11-30 Thread Tomas Matousek
I wouldn't recommend using Win32API. It's not well designed interop library. What you need is calli IL instruction. It takes a pointer to a function and arguments and calls the function. C# doesn't support this so you need some helpers. You can either emit them at run-time and call them via del