static Trans2Quik() { connection_status_callback_unmgr = new CONNECTION_STATUS_CALLBACK_UNMGR(connection_status_callback_impl); transaction_reply_callback_unmgr = new TRANSACTION_REPLY_CALLBACK_UNMGR(transaction_reply_callback_impl); order_status_callback_unmgr = new ORDER_STATUS_CALLBACK_UNMGR(order_status_callback_impl); trade_status_callback_unmgr = new TRADE_STATUS_CALLBACK_UNMGR(trade_status_callback_impl); gc_connection_status = GCHandle.Alloc(connection_status_callback_unmgr); gc_transaction_reply = GCHandle.Alloc(transaction_reply_callback_unmgr); gc_order_status = GCHandle.Alloc(order_status_callback_unmgr); gc_trade_status = GCHandle.Alloc(trade_status_callback_unmgr); }
static extern Result SET_CONNECTION_STATUS_CALLBACK_UNMGR( CONNECTION_STATUS_CALLBACK_UNMGR pfConnectionStatusCallback, out int pnExtendedErrorCode, byte[] lpstrErrorMessage, int dwErrorMessageSize);
private static extern QuikResult SET_CONNECTION_STATUS_CALLBACK_UNMGR( CONNECTION_STATUS_CALLBACK_UNMGR pfConnectionStatusCallback, out int pnExtendedErrorCode, [MarshalAs(UnmanagedType.LPStr)] StringBuilder lpstrErrorMessage, int dwErrorMessageSize);