Is there a way to serve up a Python dictionary to a compatible type in Visual Basic 6 using 开发者_运维问答win32com?
I shudder to think of the requirements for this project. I feel sorry for you already.
Since there is no dictionary type in COM, my guess is that you'll have to pass it out as two SAFEARRAYS and join it back together inside VB. That's the approach I would take.
I found this helpful, especially the second half: http://oreilly.com/catalog/pythonwin32/chapter/ch12.html
And then this article on working with COM datatypes in VB: http://theunknownuser.com/code/COMObjectsC.html
精彩评论