当然,是广义范围内的指针,包括指向某种结构体的,OLEVariant类型的,如何完整的复制它?像OleVariant,很明显是指针,大小只有四个字节,可是当我声明了
var
  Border_SideLeft: Excel2000.Border; // Excel的表格边框属性  如何将他的内容和数据保存下来?我对OLE,ActiveX,COM都不了解,请勿见笑。

解决方案 »

  1.   

    API
    The CopyMemory function copies a block of memory from one location to another. VOID CopyMemory (    PVOID Destination, // address of copy destination 
        CONST VOID *Source, // address of block to copy 
        DWORD Length  // size, in bytes, of block to copy  
       );
     ParametersDestinationPoints to the starting address of the copied block's destination. SourcePoints to the starting address of the block of memory to copy. LengthSpecifies the size, in bytes, of the block of memory to copy.  Return ValuesThis function has no return value. ResIf the source and destination blocks overlap, the results are undefined. For overlapped blocks, use the MoveMemory function属性可以通过变通保存的,读取时再分析
      

  2.   

    可是如何获得一个OLE,COM对象的大小?复制也要知道大小啊?