1 |
torben |
2671 |
// ***** BEGIN LICENSE BLOCK *****
|
2 |
|
|
// * Version: MPL 1.1
|
3 |
|
|
// *
|
4 |
|
|
// * The contents of this file are subject to the Mozilla Public License Version
|
5 |
|
|
// * 1.1 (the "License"); you may not use this file except in compliance with
|
6 |
|
|
// * the License. You may obtain a copy of the License at
|
7 |
|
|
// * http://www.mozilla.org/MPL/
|
8 |
|
|
// *
|
9 |
|
|
// * Software distributed under the License is distributed on an "AS IS" basis,
|
10 |
|
|
// * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
11 |
|
|
// * for the specific language governing rights and limitations under the
|
12 |
|
|
// * License.
|
13 |
|
|
// *
|
14 |
|
|
// * The Original Code is TurboPower SysTools
|
15 |
|
|
// *
|
16 |
|
|
// * The Initial Developer of the Original Code is
|
17 |
|
|
// * TurboPower Software
|
18 |
|
|
// *
|
19 |
|
|
// * Portions created by the Initial Developer are Copyright (C) 1996-2002
|
20 |
|
|
// * the Initial Developer. All Rights Reserved.
|
21 |
|
|
// *
|
22 |
|
|
// * Contributor(s):
|
23 |
|
|
// *
|
24 |
|
|
// * ***** END LICENSE BLOCK *****
|
25 |
|
|
//---------------------------------------------------------------------------
|
26 |
|
|
#ifndef exmmfcuH
|
27 |
|
|
#define exmmfcuH
|
28 |
|
|
//---------------------------------------------------------------------------
|
29 |
|
|
#include <vcl\Classes.hpp>
|
30 |
|
|
#include <vcl\Controls.hpp>
|
31 |
|
|
#include <vcl\StdCtrls.hpp>
|
32 |
|
|
#include <vcl\Forms.hpp>
|
33 |
|
|
#include <vcl\ExtCtrls.hpp>
|
34 |
|
|
|
35 |
|
|
#include "ststrms.hpp"
|
36 |
|
|
//---------------------------------------------------------------------------
|
37 |
|
|
class TForm1 : public TForm
|
38 |
|
|
{
|
39 |
|
|
__published: // IDE-managed Components
|
40 |
|
|
TButton *btnOpenMMF;
|
41 |
|
|
TButton *btnCloseMMF;
|
42 |
|
|
TEdit *Edit1;
|
43 |
|
|
TTimer *Timer1;
|
44 |
|
|
TLabel *Label1;
|
45 |
|
|
void __fastcall btnOpenMMFClick(TObject *Sender);
|
46 |
|
|
void __fastcall btnCloseMMFClick(TObject *Sender);
|
47 |
|
|
void __fastcall Timer1Timer(TObject *Sender);
|
48 |
|
|
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
|
49 |
|
|
private: // User declarations
|
50 |
|
|
public: // User declarations
|
51 |
|
|
|
52 |
|
|
TStMemoryMappedFile* AMMFile;
|
53 |
|
|
char Buf[101];
|
54 |
|
|
|
55 |
|
|
__fastcall TForm1(TComponent* Owner);
|
56 |
|
|
};
|
57 |
|
|
//---------------------------------------------------------------------------
|
58 |
|
|
extern TForm1 *Form1;
|
59 |
|
|
//---------------------------------------------------------------------------
|
60 |
|
|
#endif
|