konsep dan aplikasi pemrograman menggunakan borland c__ ...
konsep dan aplikasi pemrograman menggunakan borland c__ ...
konsep dan aplikasi pemrograman menggunakan borland c__ ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
#include <br />
#pragma hdrstop<br />
//---------------------------------------------------------------------------<br />
USEFORM("Unit1.cpp", Form1);<br />
//---------------------------------------------------------------------------<br />
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)<br />
{<br />
try<br />
{<br />
Application->Initialize();<br />
Application->CreateForm(__classid(TForm1), &Form1);<br />
Application->Run();<br />
}<br />
catch (Exception &exception)<br />
{<br />
Application->ShowException(&exception);<br />
}<br />
catch (...)<br />
{<br />
try<br />
{<br />
throw Exception("");<br />
}<br />
catch (Exception &exception)<br />
{<br />
Application->ShowException(&exception);<br />
}<br />
}<br />
return 0;<br />
}<br />
//---------------------------------------------------------------------------<br />
c. Unit1.h (berekstensi h)<br />
File ini merupakan file header yang berisi pendeklarasian data <strong>dan</strong> fungsi –<br />
fungsi yang akan digunakan di dalam pembuatan <strong>aplikasi</strong>. Untuk melihat<br />
<strong>dan</strong> memodifikasi isi file ini, tekanlah tombol F12 <strong>dan</strong> memilih tab Unit1.h di<br />
bawah source code atau lakukan klik kanan pada Code Editor dalam IDE<br />
C++ Builder, kemudian akan tampil sebuah popup menu, pilih menu open<br />
15