none
FPT File Header (FoxPro) RRS feed

  • Question

  • Following is DBT File Header (Dbase DBF Memo Header)

     [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
    private struct DBTHeader
    {
    public Int32 nextBlockID;
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
    public byte[] reserved1;
    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
    public string fileName;
    public byte version; // 0x03 = Version III, 0x00 = Version IV
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
    public byte[] reserved3;
    public Int16 blockLength;
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 490)]
    public byte[] reserved4;
    }

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
    private struct MemoHeader
    {
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]
    public byte[] reserved;
    public Int16 startPosition;
    public Int32 fieldLength;
    }

    i required FoxPro FPT File Header. Following link is description of  FPT File Header but i can not under stand how is it use in C#.

    http://www.clicketyclick.dk/databases/xbase/format/fpt.html

    Please Help Me.

    Thanks

     



    Please "Mark as Answer" if this post answered your question. :)

    Kalpesh Chhatrala | Software Developer | Rajkot | India

    Kalpesh 's Blog
    • Moved by Figo Fei Monday, September 6, 2010 7:11 AM (From:Visual C# General)
    Friday, September 3, 2010 4:48 AM

Answers

All replies