Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

MFC Programming Question

Thread Tools
 
Search this Thread
 
Old Apr 11, 2003 | 02:33 PM
  #1  
BoxerFlat4's Avatar
BoxerFlat4
Thread Starter
Scooby Regular
 
Joined: Nov 2001
Posts: 923
Likes: 0
From: N Wales
Question

I know there's a simple answer for this, but I can't figure it out, so ....

Writing a tool in C++, using MFC. Got my document/view classes sorted, now reading to startloading using the Serialize function. I want to serialize a simple text file, no class info written out before the text, plus access to a character pointer the text resides at would be useful. I can code up such a class myself, but surely there's a windows class that does this for me already, with all the standard serialize, buffer etc etc functions already written for me ? Keep looking at MSDN, but can't seem to find what I want.

Reply
Old Apr 11, 2003 | 03:47 PM
  #2  
GaryK's Avatar
GaryK
Scooby Regular
 
Joined: Sep 1999
Posts: 4,037
Likes: 0
From: Bedfordshire
Post

Boxer,

Was just looking through my Win32 SDK help file for ya, how about the ReadFile function? You C++ guys have to do it all the hard way! I use Delphi so I can either code to the metal or just use one of the hundreds of built in classes that wrap the Win32 API and do it in about 3 lines, simple!

Good luck

Gary
Reply
Old Apr 11, 2003 | 04:50 PM
  #3  
BoxerFlat4's Avatar
BoxerFlat4
Thread Starter
Scooby Regular
 
Joined: Nov 2001
Posts: 923
Likes: 0
From: N Wales
Post

GaryK - Cheers for that, in the end I decide to implement it myself. Only took 10 minutes, so being lazy isn't always the best solution !
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
Nov 4, 2021 07:12 PM
slimwiltaz
General Technical
20
Oct 9, 2015 07:40 PM
IanG1983
Wheels, Tyres & Brakes
2
Oct 6, 2015 03:08 PM
Brzoza
Engine Management and ECU Remapping
1
Oct 2, 2015 05:26 PM
the shreksta
Other Marques
26
Oct 1, 2015 02:30 PM




All times are GMT +1. The time now is 02:07 PM.