Luis Lavena wrote: > I think because :string definition is expecting a Ruby string, not a > memory buffer as you're trying to send. > > wchar_t should be defined as a new type and a proper memory pointer > and buffer should be used to marshal the string from Ruby to the C > realm :-) Maybe true. I'm new to ffi, so I'll have to look how to define my own type. > I suggest also bring this topic to FFI group: > > http://groups.google.com/group/ruby-ffi > > Where you could get better pointers than my vague description. I've done so: http://groups.google.com/group/ruby-ffi/browse_thread/thread/ada0ea99600b7fa1 Marvin -- Posted via http://www.ruby-forum.com/.