Easy Question -> File Pointer

This is a discussion on Easy Question -> File Pointer within the Windows Programming forums, part of the Platform Specific Boards category; I'm using WinAPI File functions and can't seem to find a GetFilePointer() type function. Does one exist?, or do i ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    28

    Easy Question -> File Pointer

    I'm using WinAPI File functions and can't seem to find a GetFilePointer() type function.

    Does one exist?, or do i have to keep track of how many bytes i have read, written, seek'd etc?

    Thanks
    Marc

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,260
    Code:
    DWORD GetFilePointer(HANDLE hFile)
    {
    	return SetFilePointer(hFile, 0, NULL, FILE_CURRENT);
    }

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    28
    Cheers mate.
    It worked a treat!

    Marc

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems with file pointer in functions
    By willie in forum C Programming
    Replies: 6
    Last Post: 11-23-2008, 12:54 PM
  2. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  3. fin fout, file pointer question
    By panfilero in forum C Programming
    Replies: 4
    Last Post: 11-22-2005, 07:49 AM
  4. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 09:46 AM

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