An example of a DLL that uses the BSTR data type is the free spell
checker, PwrSpell, at
http://www.zcureit.com/powerbasic/pwrspell.zip
The library is compiled with PowerBasic, and the provided include file
is also PB-oriented. Visual Basic or other languages that natively
support BSTR strings could also readily use the library by tweaking the
function signatures. If Ruby can also do so, that would be great.