Home  >  Q&A  >  body text

c++ - 如何深复制一个IDataObject接口对象?

请教大家一个问题?
有没有办法深复制一个IDataObject接口对象?
这貌似和COM的设计原则相违背,但是现在确实有这样的需求
不知道有没有什么好办法?

阿神阿神2766 days ago366

reply all(1)I'll reply

  • 阿神

    阿神2017-04-17 11:28:33

    There is probably no universal solution.
    Any COM program can implement an IDataObject by itself, and the data in it can be in a format that you don't understand at all. There is no mandatory rule on where the data should be placed. All you can do is give a format and let the DataObject put it in The data will be transferred and returned to you.
    I think your request is wrong. Can you tell me what exactly you want to do?

    reply
    0
  • Cancelreply