# How to handle UDT with Win32OLE?

**URL:** <https://www.ruby-forum.com/t/how-to-handle-udt-with-win32ole/130669>\
**Category:** Ruby\
**Created:** [March 1, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/how-to-handle-udt-with-win32ole/130669 "2008-03-01T16:49:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinwoo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Post date:** [March 1, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/how-to-handle-udt-with-win32ole/130669/1 "2008-03-01T16:49:17Z")

</div>

I have a function in com dll which return a UDT(user defined type). How  
do I use win32OLE to receive this data? It seems like it didn’t return  
the UDT after the function call. I also found that ruby Win32OLE can’t  
handle SAFEARRAY in com dll.  
Anyone has any idea how to use solve this issue?
