Re: Noob File IO question



On Wed, 04 Apr 2007 00:45:13 -0500, sore eyes
<are_you_kidding@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hi
I just downloaded the free Watcom compiler and am having a little
trouble with File IO http://www.openwatcom.org/index.php/Download


I downloaded the following example, commented out the Command line
arguments so that I could debug more easily. The example is a simple
file copy. and it works. but I would like to customize this to
automate some redundant changes in some large files.

Here's the problem: When I debug this and watch the input buffer
buf[], I dont see a stream of characters instead I see a sequence
of integers. I suppose these are probably the chararters but every
other integer in the array is a 0. I am guessing the file uses 16 bit
characters and my program thinks they are 8 bit. I tried defining
UNICODE = 1 in my project setting but that didn't work.

How was newcode.html built? Have you looked at it with a hex editor
to see what it really contains?

Have you tried to create a simple text file whose contents you know
and test your program on that?


Remove del for email
.



Relevant Pages

  • MSDE installation rolls back
    ... Progress: Parsing INI File. ... Characters = 8 ... Debug: Loaded string resource: 1. ...
    (microsoft.public.sqlserver.setup)
  • Re: Set App Priority
    ... string and then terminates" ... gives then parameters to use to modify the START command ... below) /F:OFF Disable file and directory name completion characters ... no special characters between the two quote characters, ...
    (microsoft.public.windowsxp.customize)
  • Re: Set App Priority
    ... This would start notepad with high priority. ... Starts a new instance of the Windows XP command interpreter ... /F:OFF Disable file and directory name completion characters ... If all of the following conditions are met, then quote characters ...
    (microsoft.public.windowsxp.customize)
  • Re: DOS Box Keyboard problem
    ... I get 437 from command chcp and cmd chcp. ... When in the cmd box I can type with all characters OK ... The OEMCP value controls to which OEM code page to translate ANSI, ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Simple Fup question
    ... If this program file is named scopy, compile it with the command: ... It drops into debug on any errors. ... record key is part-2. ... select out-file assign newfile ...
    (comp.sys.tandem)

Loading