Click here to Skip to main content
15,909,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalemessaging client Pin
jessiesrage5-Apr-05 11:28
jessiesrage5-Apr-05 11:28 
GeneralRe: emessaging client Pin
David Crow5-Apr-05 11:39
David Crow5-Apr-05 11:39 
GeneralRe: emessaging client Pin
ThatsAlok5-Apr-05 18:16
ThatsAlok5-Apr-05 18:16 
GeneralChanging ComboBox selection by text editing Pin
Ultimate Newbie5-Apr-05 10:53
sussUltimate Newbie5-Apr-05 10:53 
GeneralRe: Changing ComboBox selection by text editing Pin
David Crow5-Apr-05 11:43
David Crow5-Apr-05 11:43 
Generalemail client Pin
_tasleem5-Apr-05 9:52
_tasleem5-Apr-05 9:52 
GeneralRe: email client Pin
David Crow5-Apr-05 11:45
David Crow5-Apr-05 11:45 
GeneralPersistent GlobalAlloc or "Resource Leaks on purpose!" Pin
iwasiunknown5-Apr-05 9:22
iwasiunknown5-Apr-05 9:22 
Anyone know what Win32 technology will allow me to create a global memory structure (a couple of meg or so) and have it stay in memory after the creating application has ended? There is no reason for the structure to cross reboots.

I don’t want to use the persistent technologies like the registry or the hard drive. In the old 16 bit days, I would just GlobalAlloc a couple of Meg and write the handle to the atom table and use it when I need to or something like that. But today…when an application exits all resources it allocated are released (unless another application opened the same resource), which is pretty cool, but not what I’m looking for.

Here’s what I’ve tried and the problems with them:
1) GlobalAlloc – deleted on program exit
2) Volatile registry – best practices says not really good for more than 2k of data
3) Memory file via CreateFileMapping – deleted on program exit
4) Global Atoms – not big enough, only 16k entries and each entry is limited to 256 bytes

My limitations are that I have to rely on whatever is already on the machine and can't install anything...in other words...static linking and straight Win32.

Any ideas?
GeneralRe: Persistent GlobalAlloc or "Resource Leaks on purpose!" Pin
Shog95-Apr-05 13:55
sitebuilderShog95-Apr-05 13:55 
GeneralRe: Persistent GlobalAlloc or "Resource Leaks on purpose!" Pin
iwasiunknown7-Apr-05 4:41
iwasiunknown7-Apr-05 4:41 
Generalneed help please: error LNK2001 urgent Pin
xeru_slash5-Apr-05 9:21
xeru_slash5-Apr-05 9:21 
GeneralRe: need help please: error LNK2001 urgent Pin
David Crow5-Apr-05 11:48
David Crow5-Apr-05 11:48 
GeneralRe: need help please: error LNK2001 urgent Pin
xeru_slash5-Apr-05 22:05
xeru_slash5-Apr-05 22:05 
GeneralRe: need help please: error LNK2001 urgent Pin
ThatsAlok5-Apr-05 22:28
ThatsAlok5-Apr-05 22:28 
GeneralRe: need help please: error LNK2001 urgent Pin
David Crow6-Apr-05 2:01
David Crow6-Apr-05 2:01 
GeneralSock with database Pin
Blacknight_815-Apr-05 8:02
Blacknight_815-Apr-05 8:02 
GeneralRe: Sock with database Pin
Alexander M.,5-Apr-05 8:33
Alexander M.,5-Apr-05 8:33 
GeneralRe: Sock with database Pin
ThatsAlok5-Apr-05 18:13
ThatsAlok5-Apr-05 18:13 
GeneralAdding late Pages in CPropertySheet - A resizing problem Pin
Bruno Norberto5-Apr-05 7:48
Bruno Norberto5-Apr-05 7:48 
QuestionProblem with ROT from Remote machine ? Pin
vgrigor15-Apr-05 7:30
vgrigor15-Apr-05 7:30 
GeneralSaving graphical data in MDI Architecture Pin
laiju5-Apr-05 6:26
laiju5-Apr-05 6:26 
GeneralRe: Saving graphical data in MDI Architecture Pin
Alexander M.,5-Apr-05 8:05
Alexander M.,5-Apr-05 8:05 
Generaldisplay text when mouse is over a button Pin
wiselum5-Apr-05 6:06
wiselum5-Apr-05 6:06 
GeneralRe: display text when mouse is over a button Pin
Ravi Bhavnani5-Apr-05 6:57
professionalRavi Bhavnani5-Apr-05 6:57 
GeneralRe: display text when mouse is over a button Pin
wiselum5-Apr-05 19:56
wiselum5-Apr-05 19:56 

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.