开发者

Is there a way to serve up a Python dictionary to a compatible type in Visual Basic 6 using win32com?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜