Results 1 to 3 of 3

Thread: create Memory-mapped file

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default create Memory-mapped file

    With a large file on the disk,we can use the flowing code to create a Memory-mapped file,but how to realize it with Qt class?
    Qt Code:
    1. HANDLE CreateFile(LPCTSTR lpFileName,
    2. DWORD dwDesiredAccess,
    3. DWORD dwShareMode,
    4. LPSECUR99vY_ATTRIBUTES lpSecurityAttributes,
    5. DWORD dwCreationDisposition,
    6. DWORD dwFlagsAndAttributes,
    7. HANDLE hTemplateFile);
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: create Memory-mapped file

    Qt Code:
    1. HANDLE CreateFile(LPCTSTR lpFileName,
    2. DWORD dwDesiredAccess,
    3. DWORD dwShareMode,
    4. LPSECUR99vY_ATTRIBUTES lpSecurityAttributes,
    5. DWORD dwCreationDisposition,
    6. DWORD dwFlagsAndAttributes,
    7. HANDLE hTemplateFile);
    To copy to clipboard, switch view to plain text mode 
    the code is API function,how could I realize them by Qt class,or Qt can call these functions?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: create Memory-mapped file

    See QFile::map.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. What is the best way to create a file management panel?
    By DIMEDROLL in forum Qt Programming
    Replies: 0
    Last Post: 24th September 2008, 08:49
  2. making qmake create VisualStudio console app project file?
    By akos.maroy in forum Qt Programming
    Replies: 2
    Last Post: 18th August 2008, 14:45
  3. how to create html file in memory
    By darksaga in forum Qt Programming
    Replies: 1
    Last Post: 30th August 2007, 09:30
  4. Support for File Mapped Memory?
    By Jachyra in forum Qt Programming
    Replies: 8
    Last Post: 5th February 2007, 12:44
  5. create file in another directory
    By raphaelf in forum Qt Programming
    Replies: 3
    Last Post: 16th February 2006, 10:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.