home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 February / Chip_2001-02_cd1.bin / sharewar / vecad / examples / bcb / editor / Editor.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-01  |  945 b   |  33 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #include <VecApi.h>
  4. #pragma hdrstop
  5. USERES("Editor.res");
  6. USEFORM("Main.cpp", Form1);
  7. USEUNIT("Funcs.cpp");
  8. USEUNIT("..\..\..\API\VecApi.cpp");
  9. USEUNIT("DwgProc.cpp");
  10. USEUNIT("Strings.cpp");
  11. //---------------------------------------------------------------------------
  12. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  13. {
  14.     try
  15.     {
  16.       // load vecad.dll
  17.       if (vlStartup()==FALSE){
  18.         MessageBox(0,"VECAD51.DLL is not found","Error",MB_OK);
  19.       }else{
  20.         // run application
  21.         Application->Initialize();
  22.         Application->CreateForm(__classid(TForm1), &Form1);
  23.         Application->Run();
  24.       }
  25.     }
  26.     catch (Exception &exception)
  27.     {
  28.         Application->ShowException(&exception);
  29.     }
  30.     return 0;
  31. }
  32. //---------------------------------------------------------------------------
  33.