Passing a VARIANT from mac OS X Excel 2011 VBA to c++
Asked Answered
I

1

0

I am under mac OS X, and using excel-2011 vba. I know how to pass various types from VBA to c++ and inversely, mainly thanks to this.

Now, I would like to know if it is possible to somehow pass a VBA variant to c++ (I am using gcc 5.2). Of course, there's no VARIANT in gcc but, after all, VARIANT is "just" a union. (The optimistic guy.) Have you guys heared about classes mimicking microsoft's VARIANT and allowing to achieve this ? (In the first time, I could accept to forget about IUnknown and IDispatch !)

I am aware of mono, and looked what I could get from it, as they also have a VARIANTclass, but I don't know if it wise. I looked for a document explaining in detail the object model of excel-2011 for mac, without any success.

Precision. I am not saying that microsoft's VARIANT is, under windows, the optimal way to exchange data between c++ and excel but, with COM and ATL and stuff, I am quite used to it and it works well for what I do, so I am trying to stick to something of the "same kind" under mac OS X. I may be wrong, but in this case, I would really like to know how I could do what I want to do.

Incorporeal answered 30/8, 2015 at 22:29 Comment(0)
I
0

I finally opted for porting VARIANTto mac os x, see here :

BSTR's and VARIANT's under... mac os x

where I described how I am now trying to do it.

Incorporeal answered 11/3, 2016 at 12:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.