Serialize COM variant to BLOB or IStream

拈花ヽ惹草 提交于 2019-12-01 17:44:48

问题


Is there a standard way to serialize and deserialize a COM VARIANT, e.g. to/from a stream?

Haven't found any in MSDN, an I'm a little surprised now.


回答1:


You can do this using the the VARIANT_UserMarshal function.

General information on this function (and similar ones for other OLE Automation types) is available here: Marshaling OLE Data Types and here: The type_UserMarshal Function



来源:https://stackoverflow.com/questions/22959103/serialize-com-variant-to-blob-or-istream

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!