home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #include <VecApi.h>
- #pragma hdrstop
- USERES("Editor.res");
- USEFORM("Main.cpp", Form1);
- USEUNIT("Funcs.cpp");
- USEUNIT("..\..\..\API\VecApi.cpp");
- USEUNIT("DwgProc.cpp");
- USEUNIT("Strings.cpp");
- //---------------------------------------------------------------------------
- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
- {
- try
- {
- // load vecad.dll
- if (vlStartup()==FALSE){
- MessageBox(0,"VECAD51.DLL is not found","Error",MB_OK);
- }else{
- // run application
- Application->Initialize();
- Application->CreateForm(__classid(TForm1), &Form1);
- Application->Run();
- }
- }
- catch (Exception &exception)
- {
- Application->ShowException(&exception);
- }
- return 0;
- }
- //---------------------------------------------------------------------------
-