home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161a.iso / handson / files / cppwkshp / HelloDemo / HelloUnit.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-12-04  |  937 b   |  27 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4.  
  5. #include "HelloUnit.h"
  6. #include <shellapi.h>
  7. //---------------------------------------------------------------------------
  8. #pragma package(smart_init)
  9. #pragma resource "*.dfm"
  10. TForm1 *Form1;
  11. //---------------------------------------------------------------------------
  12. __fastcall TForm1::TForm1(TComponent* Owner)
  13.     : TForm(Owner)
  14. {
  15. }
  16. //---------------------------------------------------------------------------
  17. void __fastcall TForm1::Label10Click(TObject *Sender)
  18. {
  19.     ShellExecute (this->Handle, "open", "http://www.wombatsoft.com", NULL, "", SW_SHOWNORMAL);
  20. }
  21. //---------------------------------------------------------------------------
  22. void __fastcall TForm1::Button1Click(TObject *Sender)
  23. {
  24.     Close();    
  25. }
  26. //---------------------------------------------------------------------------
  27.