Sha256: 73e1ee6a8239abf9936325f4090a6ecfad333e8272fbf552b1cfb04c3961c6c0
Contents?: true
Size: 824 Bytes
Versions: 1
Compression:
Stored size: 824 Bytes
Contents
#!/usr/bin/env ruby lib = File.join(File.dirname(__FILE__), '..', 'lib') $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include? lib require 'dde' require 'win/gui/message' include Win::DDE include Win::GUI::Message # console output redirection (may need to wrap it in synchronization code, etc) def cout *args print *args end # std::queue<XlTable> q; // Queue contains the tables to output # Creating DDE server and staring service with default name 'excel' and default callback cout "Starting DDE server with service 'excel'\n" server = DDE::XlServer.new.start_service msg = Msg.new # pointer to Msg FFI struct # Starting message loop (necessary for DDE processing) cout "Starting message loop\n" while msg = get_message(msg) translate_message(msg); dispatch_message(msg); end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dde-0.2.8 | bin/dde_main |