Unit5.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:2k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. #include "Unit1.h"
  5. #include "Unit5.h"
  6. #include <Registry.hpp>
  7. #include <Filectrl.hpp>
  8. //---------------------------------------------------------------------------
  9. #pragma package(smart_init)
  10. #pragma resource "*.dfm"
  11. TForm5 *Form5;
  12. TRegistry *tReg;
  13. //---------------------------------------------------------------------------
  14. __fastcall TForm5::TForm5(TComponent* Owner)
  15.         : TForm(Owner)
  16. {
  17. }
  18. //---------------------------------------------------------------------------
  19. void __fastcall TForm5::Button14Click(TObject *Sender)
  20. {
  21. //-------祅魁隔畖-----------------------------
  22.     tReg = new TRegistry;
  23.     tReg->RootKey = HKEY_LOCAL_MACHINE;
  24.     if(tReg->OpenKey("Software\Waei\