C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-24-2004, 05:41 PM   #1
Registered User
 
Join Date: Oct 2002
Posts: 72
MFC: CStrings & binary files question(s)

I have a small class:
Code:
class Screen
{
public:
  Screen();

  Screen& operator=(Screen& src);

  CString screener;
  CString horz;
  CString vert;
  CString mask;

  int ID;
  int IDbase;
  int buttonBase;
};
My program uses several of these to do its work. I'd like to save them out to a file & would prefer to do a binary file so I don't have to worry about parsing.

I have a fairly good idea about how to do this by making a header struct of fixed size, reading the header struct to find the size of each of the following "Screens" & go from there, but I thought that there might be some sort of fancy MFC method for doing this that I don't know about.

is there? if not, can you recommend a better way than what I'm mentioned?

Will I run into problems if I try to just write the class out to a binary file beacuse it has the operator function?
BrianK is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Binary Search Trees Part III Prelude A Brief History of Cprogramming.com 16 10-02-2004 03:00 PM
Converting Sign Magnitude Integer Binary Files Arthur Dent C Programming 7 09-13-2004 10:07 AM
Request for comments Prelude A Brief History of Cprogramming.com 15 01-02-2004 10:33 AM
Making Binary Output to files using VC++ 6's "fstream" Perica C++ Programming 5 02-05-2003 01:48 AM
WIndows programming? hostensteffa Windows Programming 7 06-07-2002 08:52 PM


All times are GMT -6. The time now is 08:12 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22