// Call this from program.cs
 public void SerialDLLInit()
 {
     InitDG = new InitDelegate(Init);
     SetInitComCallback(InitDG);
     TxCharDG = new TxCharDelegate(Putc);
     SetTxCharCallback(TxCharDG);
     RxCharDG = new RxCharDelegate(Getc);
     SetRxCharCallback(RxCharDG);
 }
 public static extern void SetTxCharCallback(TxCharDelegate fn);