Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-17-2009, 02:43 PM   #1
LQ Newbie
Registered: Dec 2008
Posts: 18

Rep: Reputation: 0
What is the equivalent of CArchive and CMemFile in linux?

Hi, I am porting a VC++ project into Linux GCC. I am facing issues with CArchive and CMemFile. I have replaced CArchive with fstream. But what is the alternative and how can I implement CMemFile in Linux?.

Thanks in Advance,
Old 02-18-2009, 07:58 PM   #2
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
You could try mmap (memory mapping) for mapping files and devices into memory. I never used it myself, but AFAIK it is the nearest match in UNIX-land to CMemFile.


Last edited by servat78; 02-19-2009 at 12:35 PM.
Old 02-25-2009, 02:31 PM   #3
LQ Newbie
Registered: Dec 2008
Posts: 18

Original Poster
Rep: Reputation: 0
Hi Servat78,
I got the sameple code from



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
A linux equivalent to Locate32? spacejesus Linux - Software 5 12-13-2009 03:07 PM
MP3DirectCut, Linux equivalent? arubin Linux - Software 3 05-18-2008 06:17 AM
Quickbooks equivalent in linux sailu_mvn Linux - Software 3 11-28-2005 10:41 AM
truss(1) equivalent in Linux ? ashishva Programming 1 06-13-2003 07:46 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration