Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / January 2007

Tip: Looking for answers? Try searching our database.

Application running from File Memory Map

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
doanwon - 06 Jan 2007 01:08 GMT
hello, first post, thanks for reading...

Say I create an MFC Dialog program.  I then click on an
"OnCreateButtons" button to create a long list of MFC buttons/objects,
which would then be created--but takes some time.  Now this is what I
want:  I want to store these instances into file memory map so that I
don't have to create these again each time I run the program.  How
should I do it?

Also if possible, how could I save and invoke a complete running MFC
application on a mem map file?

Thanks.
Ben Voigt - 09 Jan 2007 15:27 GMT
> hello, first post, thanks for reading...
>
[quoted text clipped - 4 lines]
> don't have to create these again each time I run the program.  How
> should I do it?

You can't because they have to associated with structures inside Windows
itself.

How many buttons are you talking about?  If some are off-screen, you may
improve responsiveness by creating them only when the user scrolls them into
view.

> Also if possible, how could I save and invoke a complete running MFC
> application on a mem map file?

You can save and reload en masse any chunk provided:
   (1) You don't keep pointers to information outside the chunk (that's why
it will never work for MFC controls)
   (2) All your pointers within the chunk are relative or appropriately
adjusted at load time

Whether you use memory-mapped files or standard I/O makes not the least bit
of difference in the data stored and retrieved.

> Thanks.
>
[quoted text clipped - 3 lines]
> Posted via http://www.codecomments.com
> ------------------------------------------------------------------------

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.