home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
QRDEMO.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
2KB
|
45 lines
//----------------------------------------------------------------------------
//Borland C++Builder
//Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
//----------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl\vcl.h>
#pragma hdrstop
#include <vcl\printers.hpp>
//---------------------------------------------------------------------------
USEFORM("Main.cpp", TQuickReportDemo);
USEFORM("simprep.cpp", SimpForm);
USEDATAMODULE("CustDM.cpp", DataModule2);
USEFORM("BioRep.cpp", BioForm);
USEFORM("DemoPre.cpp", PrevForm);
USEFORM("MDRep.cpp", MDForm);
USEFORM("TextList.cpp", TextRep);
USEFORM("Labelrep.cpp", LabelForm);
USERES("qrdemo.res");
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
Application->Initialize();
if (Printer()->Printers->Count == 0)
{
ShowMessage("You must install a printer before running this example.");
Application->Terminate();
}
else
{
Application->CreateForm(__classid(TTQuickReportDemo), &TQuickReportDemo);
Application->CreateForm(__classid(TSimpForm), &SimpForm);
Application->CreateForm(__classid(TDataModule2), &DataModule2);
Application->CreateForm(__classid(TBioForm), &BioForm);
Application->CreateForm(__classid(TPrevForm), &PrevForm);
Application->CreateForm(__classid(TMDForm), &MDForm);
Application->CreateForm(__classid(TTextRep), &TextRep);
Application->CreateForm(__classid(TLabelForm), &LabelForm);
Application->Run();
}
return 0;
}
//---------------------------------------------------------------------------