Click here to Skip to main content
15,923,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: er the option of a MFC Pin
David Crow1-Dec-04 7:20
David Crow1-Dec-04 7:20 
GeneralRe: er the option of a MFC Pin
Maximilien1-Dec-04 7:27
Maximilien1-Dec-04 7:27 
GeneralRe: er the option of a MFC Pin
BRIMID1-Dec-04 8:24
BRIMID1-Dec-04 8:24 
GeneralRe: er the option of a MFC Pin
David Crow1-Dec-04 8:45
David Crow1-Dec-04 8:45 
GeneralCreateMapFile Pin
includeh101-Dec-04 3:50
includeh101-Dec-04 3:50 
GeneralRe: CreateMapFile Pin
Blake Miller1-Dec-04 5:15
Blake Miller1-Dec-04 5:15 
GeneralRe: CreateMapFile Pin
includeh101-Dec-04 6:34
includeh101-Dec-04 6:34 
GeneralRe: CreateMapFile Pin
Blake Miller1-Dec-04 6:43
Blake Miller1-Dec-04 6:43 
MSDN To fully close a file mapping object, an application must unmap all mapped views of the file mapping object by calling UnmapViewOfFile, and close the file mapping object handle by calling CloseHandle. The order in which these functions are called does not matter. The call to UnmapViewOfFile is necessary because mapped views of a file mapping object maintain internal open handles to the object, and a file mapping object will not close until all open handles to it are closed.

So, if you unmap all the views and then close the handle, the memory map file will be gone.
If you want to delete the 'regular' file, then use DeleteFile().

Otherwise, you are getting something mixed up or I don't understand what you want to do.

There is no need to 'delete' a memory mapped file. It will happen on its own if the above guidelines are followed.
Questionhow to pass data to another application? Pin
includeh101-Dec-04 3:36
includeh101-Dec-04 3:36 
AnswerRe: how to pass data to another application? Pin
David Crow1-Dec-04 3:43
David Crow1-Dec-04 3:43 
GeneralRe: how to pass data to another application? Pin
includeh101-Dec-04 4:03
includeh101-Dec-04 4:03 
GeneralRe: how to pass data to another application? Pin
David Crow1-Dec-04 4:13
David Crow1-Dec-04 4:13 
GeneralRe: how to pass data to another application? Pin
includeh101-Dec-04 4:21
includeh101-Dec-04 4:21 
GeneralRe: how to pass data to another application? Pin
includeh101-Dec-04 6:54
includeh101-Dec-04 6:54 
AnswerRe: how to pass data to another application? Pin
Peter Weyzen1-Dec-04 8:02
Peter Weyzen1-Dec-04 8:02 
GeneralMinimum pane size in a CSplitterWnd Pin
Jitendra gangwar1-Dec-04 3:22
Jitendra gangwar1-Dec-04 3:22 
GeneralProblem with CDialog::InitModalIndirect() Pin
Eugene Pustovoyt1-Dec-04 1:38
Eugene Pustovoyt1-Dec-04 1:38 
GeneralRe: Problem with CDialog::InitModalIndirect() Pin
John R. Shaw1-Dec-04 5:15
John R. Shaw1-Dec-04 5:15 
GeneralOMNIS Database Pin
si_691-Dec-04 1:32
si_691-Dec-04 1:32 
QuestionHow to have bitmaps in lib Pin
Jesper Knudsen1-Dec-04 0:35
Jesper Knudsen1-Dec-04 0:35 
AnswerRe: How to have bitmaps in lib Pin
John R. Shaw1-Dec-04 4:34
John R. Shaw1-Dec-04 4:34 
GeneralRe: How to have bitmaps in lib Pin
Jesper Knudsen1-Dec-04 20:12
Jesper Knudsen1-Dec-04 20:12 
GeneralSQLBulkOperations returns SQL_NEED_DATA with Oracle Pin
Anonymous1-Dec-04 0:10
Anonymous1-Dec-04 0:10 
GeneralColor for the Tree Control Item Pin
Neelesh K J Jain30-Nov-04 23:44
Neelesh K J Jain30-Nov-04 23:44 
GeneralRe: Color for the Tree Control Item Pin
RChin1-Dec-04 1:32
RChin1-Dec-04 1:32 

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.