void SetupHooks() { PrintHook = new LibPDPrintHook(RaisePrintEvent); Native.Messaging.set_printhook(PrintHook); BangHook = new LibPDBangHook(RaiseBangEvent); Native.Messaging.set_banghook(BangHook); FloatHook = new LibPDFloatHook(RaiseFloatEvent); Native.Messaging.set_floathook(FloatHook); SymbolHook = new LibPDSymbolHook(RaiseSymbolEvent); Native.Messaging.set_symbolhook(SymbolHook); ListHook = new LibPDListHook(RaiseListEvent); Native.Messaging.set_listhook(ListHook); MessageHook = new LibPDMessageHook(RaiseMessageEvent); Native.Messaging.set_messagehook(MessageHook); }
private static void SetupHooks() { //create the delegate with the method to call PrintHook = new LibPDPrintHook(RaisePrintEvent); //set_printhook(PrintHook); BangHook = new LibPDBangHook(RaiseBangEvent); set_banghook(BangHook); FloatHook = new LibPDFloatHook(RaiseFloatEvent); set_floathook(FloatHook); SymbolHook = new LibPDSymbolHook(RaiseSymbolEvent); set_symbolhook(SymbolHook); ListHook = new LibPDListHook(RaiseListEvent); set_listhook(ListHook); MessageHook = new LibPDMessageHook(RaiseMessageEvent); set_messagehook(MessageHook); }
private static void SetupHooks() { //create the delegate with the method to call PrintHook = new LibPDPrintHook(RaisePrintEvent); set_printhook(PrintHook); BangHook = new LibPDBangHook(RaiseBangEvent); set_banghook(BangHook); FloatHook = new LibPDFloatHook(RaiseFloatEvent); set_floathook(FloatHook); SymbolHook = new LibPDSymbolHook(RaiseSymbolEvent); set_symbolhook(SymbolHook); ListHook = new LibPDListHook(RaiseListEvent); set_listhook(ListHook); MessageHook = new LibPDMessageHook(RaiseMessageEvent); set_messagehook(MessageHook); }
private static extern void set_banghook(LibPDBangHook hook) ;
private static extern void set_banghook(LibPDBangHook hook);
public static extern void set_banghook(LibPDBangHook hook);