# BSTR data type

**URL:** <https://www.ruby-forum.com/t/bstr-data-type/94398>\
**Category:** Ruby\
**Created:** [May 3, 2006, 6:57pm UTC](https://www.ruby-forum.com/t/bstr-data-type/94398 "2006-05-03T18:57:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamal86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Post date:** [May 3, 2006, 6:57pm UTC](https://www.ruby-forum.com/t/bstr-data-type/94398/1 "2006-05-03T18:57:41Z")

</div>

I have some Windows DLLs that include functions where the BSTR data type  
is used as a parameter and/or return value. The Win32API library does  
not seem to support this data type (at least directly). Does anyone  
have code to do so? How about the variant data type? (I am not talking  
about COM server libraries that could be called with Win32OLE.)

Jamal
