Solved

Using stream I/O in Doc/View model

Posted on 1998-05-18
2
196 Views
Last Modified: 2013-12-26
I have run into problem using TOutStream/TInStream classes in my OWL application. These stream classes derived from ostream/istream classes. This means that it write/read data in text format! How can I save data in real binary format (not only my own classes, but other OWL and BCPP classes, TPoint, for example)?
0
Comment
Question by:airat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
msmits earned 50 total points
ID: 1299674
You could just try opening the stream in binary mode and writing the class you want on the output to the stream.
The problem with this is that some of the classes have internal pointers to other objects and possibly C strings (char *), which will then not be stored in your file.

If you really want such functionality, I suggest you create a derived class for each class you want streamable and provide extra functions to read and write the important information from and to file.
I believe C++Builder VCL classes are all streamable. At least they are all derived from a class with the substring streamable in the classname.
0
 
LVL 3

Expert Comment

by:msmits
ID: 1299675
Could you delete the other question that I didn't answer. It is identical to this one and will only cost you points.

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WordPress/WooCommerce security best practices? 2 112
Some high points and examples of what's great about Facebook React? 5 200
Animated .jpg? 13 104
asp Google Map 2 59
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question