[Win32utils-devel] converting a RSTRING to an OLESTR

Wayne Vucenic waynev at gmail.com
Sun May 11 16:53:52 EDT 2008

Hi Dan,

I haven't had to do this in many years, but when I did the _bstr_t routines
were what I used:


An OLE string is really a BSTR isn't it?  Anyway, this is all from memory,
so I hope it's appropriate for what you're trying to do.

Take care,


On Sun, May 11, 2008 at 12:23 PM, Daniel Berger <djberg96 at gmail.com> wrote:

> Hi,
> I was going to modify the TaskScheduler#save method to take an optional
> file name. But, I need to convert a Ruby string to an OLE string. I thought
> I could use this:
> http://msdn.microsoft.com/en-us/library/ms692615(VS.85).aspx
> But, it only appears to accept literal string constants.
> Any other suggestions?
> Thanks,
> Dan
> _______________________________________________
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/win32utils-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20080511/7ef4e3c2/attachment.html>

More information about the win32utils-devel mailing list