I have stumbled in the formatter stuff and it mentions serialize/deserialize
What is the name of the Example. I haven't hit it yet. Below is the cut of my Structure. The file is in Binary format. This all seems to be a weak spot in MSDN. I must just be hitting all around it. I've tried this and get errors
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter bFormatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter()
tr
V2Style sV2Style = (V2Style)bFormatter.Deserialize(fs)
catch(Exception f
MessageBox.Show(f.Message.ToString())
[ StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)
public struct V2Styl
[ MarshalAs(UnmanagedType.ByValTStr, SizeConst=33) ] public string szTagname
[ MarshalAs(UnmanagedType.ByValTStr, SizeConst=33) ] public string pTagContext
public short font
public short emphasis
public short background
public short foreground
public short size
public short LineSpace
public short SpaceAbove
public short SpaceBelow
public short IndentLeft
public short IndentRight
public short IndentFirst
[ MarshalAs(UnmanagedType.ByValArray, SizeConst=10) ] public short tabsArray
public short justification
public ushort Flags
[ MarshalAs(UnmanagedType.ByValTStr, SizeConst=82) ] public string AttributeList
[ MarshalAs(UnmanagedType.ByValTStr, SizeConst=32) ] public string facename
public uint RGBfore; /* Foreground text color - version 2.0 *
public uint RGBback; /* Background text color - version 2.0 *
public byte BorderStyle
[ MarshalAs(UnmanagedType.ByValTStr, SizeConst=5) ] public string extra