Click here to Skip to main content
15,915,770 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: cout << flush not working in my class that inherits from fstream Pin
Dave Bryant25-Mar-03 11:12
Dave Bryant25-Mar-03 11:12 
GeneralRe: cout << flush not working in my class that inherits from fstream Pin
mflores8826-Mar-03 5:15
mflores8826-Mar-03 5:15 
GeneralPbm with CDhtmlDialog Pin
RaajaOfSelf25-Mar-03 9:14
RaajaOfSelf25-Mar-03 9:14 
GeneralRe: Pbm with CDhtmlDialog Pin
RaajaOfSelf25-Mar-03 9:25
RaajaOfSelf25-Mar-03 9:25 
GeneralShared Memory Allocator for vc++ / Win32 Pin
CLM25-Mar-03 8:29
CLM25-Mar-03 8:29 
GeneralRe: Shared Memory Allocator for vc++ / Win32 Pin
Neville Franks25-Mar-03 10:01
Neville Franks25-Mar-03 10:01 
GeneralRe: Shared Memory Allocator for vc++ / Win32 Pin
CLM25-Mar-03 12:03
CLM25-Mar-03 12:03 
GeneralRe: Shared Memory Allocator for vc++ / Win32 Pin
Neville Franks26-Mar-03 0:45
Neville Franks26-Mar-03 0:45 
Hi Chris,
Is there a link where I can read the CUJ article. Is accessing shared memory in this way an academic exercise, or something have a need for?

I've done a little bit of work storing offsets to the MMF base address instead of pointers and then using smart pointers to access the real objects. This the indirection you refer to. This was used to have a persistant MMF that was portable across Windows platforms. This worked fine, but I haven't had time to pursue it further.

I'm reasonably sure that on any given PC you will get the same address, and also on the same versions of Windows.

Post is an impressive implementation of a persitant store using MMF. See: http://www.garret.ru/~knizhnik/post/readme.htm[^] http://www.garret.ru/~knizhnik/post.html[^] Note the STL issues however.

Other related articles in my collection include:
PHeap: http://www.ima.umn.edu/~pliam/pheap/[^]
http://www.cantrip.org/wave12.html[^]
Pointer Swizzling http://db.cs.berkeley.edu/~jmh/cs262b/swizzle.html[^]
PDO http://www.geocities.com/brianleeprice/pdo.html[^]
Managing Memory-Mapped Files in Win32 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngenlib/html/msdn_manamemo.asp[^]
The Standard Librarian: File-Based Containers http://www.cuj.com/experts/1907/austern.htm?topic=experts[^]

Happy reading. Let me know what you get up to.

Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
GeneralRe: Shared Memory Allocator for vc++ / Win32 Pin
CLM26-Mar-03 15:56
CLM26-Mar-03 15:56 
QuestionHow to get pointer of outer class inside an inner class Pin
Anonymous25-Mar-03 8:17
Anonymous25-Mar-03 8:17 
AnswerRe: How to get pointer of outer class inside an inner class Pin
Tim Smith25-Mar-03 8:21
Tim Smith25-Mar-03 8:21 
GeneralRe: How to get pointer of outer class inside an inner class Pin
Anonymous25-Mar-03 8:31
Anonymous25-Mar-03 8:31 
GeneralRe: How to get pointer of outer class inside an inner class Pin
Tim Smith25-Mar-03 8:48
Tim Smith25-Mar-03 8:48 
QuestionHow to copy a large amount of data? Pin
Jakob Bysewski25-Mar-03 8:08
Jakob Bysewski25-Mar-03 8:08 
AnswerRe: How to copy a large amount of data? Pin
Tim Smith25-Mar-03 8:19
Tim Smith25-Mar-03 8:19 
GeneralRe: How to copy a large amount of data? Pin
Jakob Bysewski25-Mar-03 8:26
Jakob Bysewski25-Mar-03 8:26 
GeneralRe: How to copy a large amount of data? Pin
Tim Smith25-Mar-03 8:50
Tim Smith25-Mar-03 8:50 
GeneralRe: How to copy a large amount of data? Pin
Jakob Bysewski25-Mar-03 9:33
Jakob Bysewski25-Mar-03 9:33 
AnswerRe: How to copy a large amount of data? Pin
Daniel Turini25-Mar-03 8:45
Daniel Turini25-Mar-03 8:45 
GeneralPosition of items in a CListCtrl Pin
Kuniva25-Mar-03 8:07
Kuniva25-Mar-03 8:07 
QuestionHow to implement OpenGL in MDI? Pin
uNsignedINT25-Mar-03 7:45
uNsignedINT25-Mar-03 7:45 
GeneralNew Document MDI Pin
rahulv25-Mar-03 5:43
rahulv25-Mar-03 5:43 
GeneralRe: New Document MDI Pin
Neville Franks25-Mar-03 10:07
Neville Franks25-Mar-03 10:07 
GeneralSimple Dialog Box in SDI--- HELP!!!! Pin
uNsignedINT25-Mar-03 5:41
uNsignedINT25-Mar-03 5:41 
GeneralRe: Simple Dialog Box in SDI--- HELP!!!! Pin
valikac25-Mar-03 7:13
valikac25-Mar-03 7:13 

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.