Click here to Skip to main content
16,007,443 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: where are the sound functions Pin
16-Feb-02 3:55
suss16-Feb-02 3:55 
GeneralRe: where are the sound functions Pin
Domenic Denicola16-Feb-02 5:14
Domenic Denicola16-Feb-02 5:14 
GeneralRe: where are the sound functions Pin
alex.barylski16-Feb-02 11:46
alex.barylski16-Feb-02 11:46 
GeneralBuffer in memory as file Pin
16-Feb-02 2:51
suss16-Feb-02 2:51 
GeneralRe: Buffer in memory as file Pin
Mazdak16-Feb-02 3:10
Mazdak16-Feb-02 3:10 
GeneralRe: Buffer in memory as file Pin
16-Feb-02 3:47
suss16-Feb-02 3:47 
GeneralRe: Buffer in memory as file Pin
Uwe Keim16-Feb-02 5:25
sitebuilderUwe Keim16-Feb-02 5:25 
GeneralRe: Buffer in memory as file Pin
Paul M Watt16-Feb-02 7:05
mentorPaul M Watt16-Feb-02 7:05 
If you are not using MFC, then you will be interested in memory mapped files.

1. open your file with CreateFile.

2. Call CreateFileMapping with the handle that you received from CreateFile. You will also need to specify things like the size of the file that you want to read into memory and access that you would like to have to the file.

3. Call MapViewOfFile, this function will return a pointer to you that you can treat exactly like memory.

Depending on the settings that you choose, when you close the file mapping, all of the memory that you have changed will already be written to Disk.

In one of the other responses to your question, CMemFile encapsulates this behavios, but you will have to use MFC.

Generalhaving a ansistring = " Pin
Steven Richardson16-Feb-02 2:48
Steven Richardson16-Feb-02 2:48 
GeneralRe: having a ansistring = " Pin
Joaquín M López Muñoz16-Feb-02 3:01
Joaquín M López Muñoz16-Feb-02 3:01 
GeneralRe: having a ansistring = " Pin
Steven Richardson16-Feb-02 3:10
Steven Richardson16-Feb-02 3:10 
GeneralRe: having a ansistring = " Pin
Joaquín M López Muñoz16-Feb-02 3:28
Joaquín M López Muñoz16-Feb-02 3:28 
GeneralRadio Buttons Pin
16-Feb-02 1:51
suss16-Feb-02 1:51 
GeneralRe: Radio Buttons Pin
Mazdak16-Feb-02 1:58
Mazdak16-Feb-02 1:58 
GeneralRe: Radio Buttons Pin
16-Feb-02 2:34
suss16-Feb-02 2:34 
GeneralFarsi strings problem !!! Pin
Hadi Rezaee16-Feb-02 1:30
Hadi Rezaee16-Feb-02 1:30 
GeneralRe: Farsi strings problem !!! Pin
Mazdak16-Feb-02 2:04
Mazdak16-Feb-02 2:04 
GeneralOpening more than 509 files using VC++ 6.0 SP5 Pin
16-Feb-02 1:01
suss16-Feb-02 1:01 
GeneralRe: Opening more than 509 files using VC++ 6.0 SP5 Pin
Nish Nishant16-Feb-02 1:09
sitebuilderNish Nishant16-Feb-02 1:09 
GeneralRe: Opening more than 509 files using VC++ 6.0 SP5 Pin
16-Feb-02 4:02
suss16-Feb-02 4:02 
GeneralRe: Opening more than 509 files using VC++ 6.0 SP5 Pin
Rick York16-Feb-02 6:29
mveRick York16-Feb-02 6:29 
GeneralDont know the meaning of this constants. Pin
tppradeep1815-Feb-02 20:51
tppradeep1815-Feb-02 20:51 
GeneralRe: Dont know the meaning of this constants. Pin
Nish Nishant15-Feb-02 21:37
sitebuilderNish Nishant15-Feb-02 21:37 
GeneralRe: Dont know the meaning of this constants. Pin
alex.barylski15-Feb-02 22:25
alex.barylski15-Feb-02 22:25 
Questionwhere is the problem? Pin
15-Feb-02 19:59
suss15-Feb-02 19:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.