From: Thomas Thomassen Date: 2010-10-04T15:30:11+09:00 Subject: Re: Ruby and CoCreateInstance Ryan Davis wrote: > On Oct 3, 2010, at 13:15 , Thomas Thomassen wrote: > >> What I would like to do is call the new Taskbar API in Windows7 in a >> hope that it will allow for a reactive progress indication. > > Bad idea unless your plugin is supposed to run on only windoze (which > would make us sad)... What you _should_ do is see if google sketchup API > has their own progress API. If not, you should petition them for it. It hasn't. And we have petitioned this for years - literally. I know it'll only be available for limited amount of users, but I'd like to try it out anyway. I don't have the know-how to create a Win+OSX compatible custom progressbar implementation. At least I could offer an enhancement for some users. From what I understand the CoCreateInstance is connecting to a COM object - which one in Ruby can do with Win32OLE. WIN32OLE.new(CLSID_TaskbarList3) However, I get error message that the No such interface supported. When I look at the examples for a progressbar it appear that they are creating a Taskbar object with an ITaskbarList3 interface - but when I look at the Ruby source code the object it creates is hardcoded to IDispatch. -- Posted via http://www.ruby-forum.com/.