Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > WIN32OLE question

Reply
Thread Tools

WIN32OLE question

 
 
andrew queisser
Guest
Posts: n/a
 
      07-29-2003
I'm using WIN32OLE with the Matrox ActiveMIL image processing library.
For the most part things work fine but there's a function that won't
work cleanly. The function has two versions, the first one to set a
kernel element, the second one to retrieve an element. I'm attaching
an IDL snippet below. Only the second version works directly in Ruby.
I can make the first version work like this:

k._invoke(0xd,[1,1,5.0],[VT_I4,VT_I4,VT_R8])

but I'm wondering why it's not working directly.

Any suggestions?

Thanks,
Andrew Queisser

[id(0x0000000d), propput,
helpstring("Returns or sets the data in the kernel."),
helpcontext(0x0000241d)]

HRESULT Data([in] long X, [in] long Y, [in] double retval);

[id(0x0000000d), propget,
helpstring("Returns or sets the data in the kernel."),
helpcontext(0x0000241d)]

HRESULT Data([in] long X, [in] long Y, [out, retval] double* retval);
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WIN32OLE - failed to create WIN32OLE zxem Ruby 1 12-19-2007 07:01 PM
win32ole question.... Dave Rose Ruby 4 02-03-2007 12:25 AM
Win32OLE Question studlee2@gmail.com Ruby 7 07-15-2006 03:40 AM
WIN32OLE#[] and WIN32OLE#[]= method in Ruby 1.9 (or later) Masaki Suketa Ruby 4 03-27-2006 11:17 AM
[WIN32OLE] Outlook Automation Question Steve Tuckner Ruby 0 06-26-2003 03:54 PM



Advertisments