To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 693
  NQC stdin & stdout
 
I'm looking for some way in windows to send files to and from stdin & stdout. I'm not 'C' savvy. I'm building a macro set for a editor to NQC for the disabled and would like to talk to NQC via the above. If I can't talk to it directly I'd love a cmd (...) (24 years ago, 9-Aug-00, to lugnet.robotics.rcx.nqc)
 
  Re: NQC stdin & stdout
 
(...) I think using '-' as the filename should work on windows as well as other platforms. (24 years ago, 9-Aug-00, to lugnet.robotics.rcx.nqc)
 
  Re: NQC stdin & stdout
 
(...) I know how to get NQC to wait for the stdin but I do not know how to get Windows to send a file or whatnot to that waiting port. Saving a file with '-' just made a file called '-'. sigh... Dean -- Coin-Op's For Sale!: (URL) Lego Workshop: (...) (24 years ago, 9-Aug-00, to lugnet.robotics.rcx.nqc)
 
  Re: NQC stdin & stdout
 
(...) I'm not sure about the specific calls, but when you invoke one program from another you typically can control what file handles are used as stdin, stdout, and stderr by the launched program. Usually these are just handed off from (...) (24 years ago, 13-Aug-00, to lugnet.robotics.rcx.nqc)
 
  Re: NQC stdin & stdout
 
(...) Yes, that would be the easiest way but also the most annoying as it forces me to change the file name on the users editor. I'm looking in to a DDE command way to avoid this, but so far without success. Thanks for your help btw. Dean -- (...) (24 years ago, 15-Aug-00, to lugnet.robotics.rcx.nqc)
 
  Re: NQC stdin & stdout
 
(...) Could you copy the entire contents to the clipboard, then have your program write the clipboard data to a temp file? (you'd still avoing having to create pipes, etc) Dave Baum (24 years ago, 16-Aug-00, to lugnet.robotics.rcx.nqc)
 
  Re: NQC stdin & stdout
 
(...) That's my current plan. I tried the normal way and it lost the file name, the current dir, everything. It has become VERY frustrating... But I should have it soon. I'll be offering it free on our site. I'll post when it's done. Dean -- (...) (24 years ago, 16-Aug-00, to lugnet.robotics.rcx.nqc)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR