1<html><head>
2	<title>Metakit sample code - MyIO</title>
3</head><body bgcolor=white>
4
5<font face=Helvetica size=3>
6
7<!--begin-->
8<h2><img src="e4app.gif" alt="App Icon" border=0 align=left>
9Metakit sample code - MyIO</h2><br clear=left>
10
11<p>This example demonstrates how to setup low-level datafile encryption with Metakit.</p>
12
13<p><b>What it does</b>: MyIO creates a simple view on disk, and then loads it back in.
14The data on disk is stored in a simple encrypted format.
15</p>
16
17<p><b>What it illustrates</b>: This sample program shows how to customize Metakit
18via its "Strategy" object. <p>Just to show it can be done, MyIO also disables all
19flush calls issued by Metakit.  This slightly reduces the fail-safe properties but
20improves performance with frequent commits on systems which implement caching using
21 "lazy writes" (such as Windows).<p>The source code of this
22application can be compiled for 32-bit Windows (as console application)
23as well as for 16-bit DOS targets. MyIO has no practical use, but it contains a 
24"CEncryptStrategy" class which you can adapt to suit your purposes. </p>
25
26<p><b>How to use it</b>: When you launch MYIO.EXE, it creates a datafile called "secret.dat",
27saves some string data to it, then reads that back and displays these strings.
28<p>Note that due to the encrypted
29storage format you can NOT use the Metakit dump utility to examine the contents of the data file.
30You can of course build your own version of it, since all the necessary source code is included.
31
32<p><b>Known problems</b>: None.</p>
33
34<p><b>Files in EXAMPLES\MYIO</b>: </p>
35
36<p>MYIO.CPP - MyIO main program 
37<br>MYIO.MAK, MYIO.MDP - MSVC 4.2 project makefiles for Win32 
38<br>MYIO16.MAK - MSVC 1.52 project makefile
39<!--end-->
40
41<center><p><hr size=1>
42||
43&nbsp; <a href="index.html" target="_top">Roadmap</a>
44&nbsp; <a href="classes.html">Class Index</a>
45&nbsp; <a href="samples.html">Sample Index</a>
46&nbsp; ||
47&nbsp; <a href="intro.html">Introduction</a>
48&nbsp; <a href="tips.html">Tips and Tricks</a>
49&nbsp; || 
50
51</center>
52</font>
53
54</body></html>
55