1<html><head> 2 <title>Metakit sample code - Demo</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 - Demo</h2><br clear=left> 10 11<p>This example is more a "proof of concept" than anything else... </p> 12 13<p><b>What it does</b>: Demo creates a simple view on disk, makes a few 14changes to the data as well as the structure, and then saves these too. 15</p> 16 17<p><b>What it illustrates</b>: This sample program shows how to set up 18a simple program which uses Metakit. The source code of this 19application can be compiled for 32-bit Windows (as console application) 20as well as for 16-bit small-model DOS targets. When run more than once, i.e. with an existing 21datafile, this program will cause some changes to the data which illustrate 22the effects of "on-the-fly data restrcuturing". 23Demo has little practical use, other than to show you 24how to get started with Metakit. </p> 25 26<p><b>How to use it</b>: When you launch the 16-bit DOS version called DEMO16.EXE, 27it creates a datafile called "myfile.dat", saves some 28data to it, and then reopens it and displays the line: 29<pre> The country of Paco Pena is: Spain </pre> 30 31By following the code, you can see where this came from. You can use the Metakit 32dump utility (see below) to examine the contents of the data file. 33 34<p><b>Known problems</b>: None.</p> 35 36<p><b>Files in EXAMPLES\DEMO</b>: </p> 37 38<p>DEMO.CPP - Demo main program 39<br>DEMO.MAK, DEMO.MDP - MSVC 4.2 project makefiles for Win32 40<br>DEMO16.MAK - MSVC 1.52 project makefile 41<!--end--> 42 43<center><p><hr size=1> 44|| 45 <a href="index.html" target="_top">Roadmap</a> 46 <a href="classes.html">Class Index</a> 47 <a href="samples.html">Sample Index</a> 48 || 49 <a href="intro.html">Introduction</a> 50 <a href="tips.html">Tips and Tricks</a> 51 || 52 53</center> 54</font> 55 56</body></html> 57