[Win32utils-devel] converting a RSTRING to an OLESTR

Daniel Berger djberg96 at gmail.com
Sun May 11 17:40:18 EDT 2008

Wayne Vucenic wrote:
> Hi Dan,
> I haven't had to do this in many years, but when I did the _bstr_t 
> routines were what I used:
> http://msdn.microsoft.com/en-us/library/aa278285(VS.60).aspx
> 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.

Thanks, that worked!

For the record I had to add comutil.h to the included header files, and 
add both comsupp.lib and comsuppwd.lib to $LIBS in the extconf.rb file.



More information about the win32utils-devel mailing list