Call ocx method

0 views
Skip to first unread message

Bruno Hilaire

unread,
Oct 30, 2009, 4:48:44 PM10/30/09
to rails...@googlegroups.com
Hello,

I would like to call some methods from my own ocx in Google Sketchup.
The instantiation of the ocx seems Ok.

I can also retrieve some informations of the method (its dispid, the
type of argument, ...). But, when I call the method, I have an error.

Here is my code :

require 'win32ole'
include WIN32OLE::VARIANT
obj = WIN32OLE.new('{my CLSID}')
p = obj._invoke(method_dispid,[10,10,10],[VT_R8,VT_R8,VT_R8])


The error message is :

unitialized constant VT_R8 !!!

Does anyome can help me ?

Thank in advance

Bruno
--
Posted via http://www.ruby-forum.com/.

Reply all
Reply to author
Forward
0 new messages