Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: erac
  • Order by date
  1. erac

    WriteFile outputs junk

    Loren Thanks for the help using WriteFile. Using output[1] does work as does 'abc'[1] for literals. I find this counter-intuitive (at least for me ;-)), I would expect output[1] to be a single character and hence not a buffer at all - I guess it's my C/C++/Java background. Richard
  2. erac

    WriteFile outputs junk

    I'm updating a 16 bit Delphi1 program, that uses the serial ports, to run on Delphi5/Win2000 but I'm having trouble with WriteFile. If I use huge strings ($H+) string literals are output correctly but a string variable comes out as junk (I guess that Windows is getting the wrong buffer...
  3. erac

    File & Directory Copy

    Have you looked at the extension module ftools. This includes copy, cp & syscopy. This in a Win download of Ruby 1.67 from dev.rubycentral.com The copy is only of one file so you still have to recursively walk the directory tree but at least the file copy is a one-liner.

Part and Inventory Search

Back
Top