1 2 //--------------------------------------------------------------------------- 3 4 #include <vcl.h> 5 #include <Shellapi.hpp> 6 #pragma hdrstop 7 8 9 #include "Unit1.h" 10 //--------------------------------------------------------------------------- 11 #pragma package(smart_init) 12 #pragma resource "*.dfm" 13 TForm1 *Form1; 14 //--------------------------------------------------------------------------- 15 __fastcall TForm1::TForm1(TComponent* Owner) 16 : TForm(Owner) 17 { 18 } 19 //--------------------------------------------------------------------------- 20 21 void __fastcall TForm1::Button1Click(TObject *Sender) 22 { 23 ShellExecute(Handle, 24 "open", 25 "http://www.DevSuperpage.com", 26 0, 27 0, 28 SW_SHOW); 29 30 } 31 //---------------------------------------------------------------------------