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
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...
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.