Search:

Type: Posts; User: dpkeller

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    3,498

    ReadFile function fails.

    I am having a problem with the ReadFile function. Here is the code:

    int size1 = GetFileSize( hfbm, NULL );
    for( int i = 0; i < size1; ++i ) {
    int dummy;
    if( ReadFile( hfbm,...
  2. Replies
    2
    Views
    1,536

    write function writing more than one byte

    I want to write data to a file one byte at a time. I am having a problem that for some reason the write function is writing 2 bytes instead of one. Here is the code.


    int begin, end, dummy;
    ...
Results 1 to 2 of 2