Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,
I created a open and save dialog box for a binary file in mfc8.0(visual studio 2005),requires to provide file pointers to access the same. After opening a file, required to get a copy of that (should allocate a memory for the file approx 20kb )for editing and then updated(Save). Is thier any alternate way of allocating memory in MFC other than using malloc? Please Help me out with the code.....
Please give some inputs on File pointers , i'm new to software field.
Posted
Updated 31-May-12 19:39pm
v2
Comments
Chandrasekharan P 1-Jun-12 2:24am    
The main part of your implementation is not clear. You need to explain more on what you need to do.
Amar_C 1-Jun-12 5:12am    
i have to open a .rom file by allocating memory and also for .bmp file. after that, required to edit the .rom file for logo updation from .bmp file.the updated file has to be saved as a different file without altering the original .rom and .bmp file

you are misunderstanded it. "File pointers" means not to point to allocated files in memory. Instand that maybe pointers to CFile-objects.

Please show EVERYTIME in your progreamming career the code you want to discuss.
 
Share this answer
 
The way you allocate memory even within MFC projects is independent of MFC (in another words, the framework has nothing to do with memory allocation). So your question doesn't make that much sense. What's wrong with using malloc/free or new/delete?

Maybe you need to clarify your question, and post some applicable code to help us understand the issue you are facing.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900