ICustomMarshaler question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Carlos Guzmán Álvarez

    #1

    ICustomMarshaler question

    Hello:

    I'm trying to implement a custom marshaler for a field of an struct, the
    field is an array of struct type, but it's not working, i want to know
    if this is possible ??

    The structure:

    [StructLayout(La youtKind.Sequen tial)]
    public struct XSQLDA
    {
    public short version;
    [MarshalAs(Unman agedType.ByValT Str, SizeConst=8)]
    public string sqldaid;
    public int sqldabc;
    public short sqln;
    public short sqld;

    [MarshalAs(Unman agedType.Custom Marshaler,
    MarshalTypeRef= typeof(XsqlvarA rrayMarshaler))]
    public XSQLVAR[] sqlvar; <-------
    }


    XsqlvarArrayMar shaler implements ICustomMarshale r interface.



    Thanks in advance.



    --
    Best regards

    Carlos Guzmán Álvarez
    Vigo-Spain

Working...