문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top