createfile()

This is a discussion on createfile() within the C++ Programming forums, part of the General Programming Boards category; hi all, i use the createfile() function to read file, do i need to include any file? thanks all!...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    74

    createfile()

    hi all, i use the createfile() function to read file, do i need to include any file?

    thanks all!

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,447
    windows.h, as in your other post.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    74
    i use creatfile function to read a text file but got the INVALID_HANDLE_VALUE, i use getlasterror and got the following message:

    the data area passed to a system call is too small

    i dun understand, how should i fix it? thnks very much!!

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Post the code, please - as I suggested in the other thread on the same subject - perhaps we can keep to one thread?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,447
    Seems to be two threads on the same problem, this one is done.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. CreateFile() and CONOUT$
    By cboard_member in forum Windows Programming
    Replies: 1
    Last Post: 06-30-2006, 02:30 PM
  2. CreateFile() giving errors
    By neandrake in forum Windows Programming
    Replies: 2
    Last Post: 09-27-2004, 10:29 PM
  3. Serial comm W32 using CreateFile
    By Foldager in forum Windows Programming
    Replies: 2
    Last Post: 06-30-2003, 01:13 PM
  4. fopen and CreateFile
    By Bajanine in forum Windows Programming
    Replies: 3
    Last Post: 04-03-2003, 06:24 PM
  5. CreateFile and Long Path/Files :: Win32
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 12-27-2002, 09:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21