From: MikkelFJ Date: 2002-08-07T12:03:07+09:00 Subject: Re: win32ole and excel > I do not know OCaml, but it seems to me that you need to specify VT_XXX > type directly. (This is because I read excel1.ml only, so I had mistaken.) > And this seems same as _invoke approach of Ruby. I think they generate wrapper code from the typelib. So the wrapper uses invoke but the user doesn't. > > As you can see in the script, VT_BSTR did the job. > > This information might help me. Thank you. > I'll investigate more. Strange problem. Here is an idea: COM objects implement the IDispatch interface as they choose. It could be that the Excel implementation is more tolerant towards different types than the MDM object. I think the MDM objects uses the Microsoft ATL standard implementation (99% of all new C++ based COM objects do that). Mikkel