 |
Forums |
Admin Start New Thread
By: Daniel Berger
RE: pure ruby win32-ole status? [ reply ] 2009-08-27 18:30
|
Right, I actually have an FFI version of win32-api in the CVS repo, but it only covers the base Win32::API class so far. I haven't implemented Win32::API::Function or Win32::API::Callback.
I think callbacks are doable, but I'm not sure about raw function pointers.
Regards,
Dan
|
By: Chuck Remes
RE: pure ruby win32-ole status? [ reply ] 2009-08-27 17:48
|
|
I'll send a query to the jruby list asking how this might be accomplished. I know they support FFI (as designed together by the Rubinius and JRuby team) but I don't know if it uses JNI under the covers to talk to C extensions. I'll let you know what I find.
|
By: Daniel Berger
RE: pure ruby win32-ole status? [ reply ] 2009-08-27 17:13
|
Oh, and to answer your questions more directly, there are no C extensions directly, but it does ultimately rely on the win32-api library. So, there's one C extension, but I do provide a pre-compiled binary for it.
At the moment it does not work with JRuby because win32-api doesn't yet work with JRuby. Specifically, I have no idea how to implement Win32::API::Function in JRuby, and I'm not yet sure it's even possible. I'd love to be proven wrong, though.
Regards,
Dan
|
By: Daniel Berger
RE: pure ruby win32-ole status? [ reply ] 2009-08-27 17:10
|
Actually, Heesob has more or less completed a pure Ruby version of WIN32OLE, i.e. it has the same interface. It's in the SVN repository in the "Pure" project.
I haven't released it yet because it lacks proper tests and documentation at the moment.
The win32-ole project was going to be a combination of updated code, a nicer API, and some other improvements. That's on the back-burner at the moment, though.
Regards,
Dan
|
By: Chuck Remes
pure ruby win32-ole status? [ reply ] 2009-08-27 15:41
|
I just discovered that you are working on a pure ruby replacement for the WIN32OLE classes in MRI. This is pretty exciting news!
If you don't mind, I have a few questions.
1. Will it work with JRuby or does it rely on C extensions?
2. Will it have a compatibility layer for existing WIN32OLE code?
3. When will we see a first (beta?) release?
I just started work on a project that must run under Windows so I am very excited to see this project and its high activity level. I am hitting the tip jar now!
|
|
 |