FORMATETC in ObjIdl.inc

habran
2011-06-10
2013-05-18
  • habran

    habran - 2011-06-10

    Hi Japheth,

    ObjIdl.h
    typedef struct tagFORMATETC {
      CLIPFORMAT     cfFormat;
      DVTARGETDEVICE *ptd;
      DWORD          dwAspect;
      LONG           lindex;
      DWORD          tymed;
    } FORMATETC, *LPFORMATETC;

    ObjIdl.inc
    FORMATETC struct 8 ;v2.02: alignment changed from 4 to 8
    cfFormat CLIPFORMAT ?
    ptd DWORD ?               ;INT_PTR
    dwAspect DWORD ?
    lindex SDWORD ?
    tymed DWORD ?
    FORMATETC ends

    size of struct suppose to be 32 and appears to be  20
    ptd is a pointer

    for 32 bits OK but for 64 not

    regards

     
  • japheth

    japheth - 2011-06-26

    You're right. Changed type of member ptd to LPVOID ( regrettably, there is no LPDVTARGETDEVICE type defined ).

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks