00001 /* 00002 * $Id: opampsim.cpp,v 1.3 2006/09/11 10:10:23 ghost666 Exp $ 00003 * 00004 * OpAmpSim - Operational amplifier simulator 00005 * Copyright (C) 2006 Piotr 'GhosT' Wydrych, 00006 * Krzystof Rusek, 00007 * Grzegorz Gancarczyk 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00022 */ 00023 00024 //--------------------------------------------------------------------------- 00025 00026 #include <vcl.h> 00027 #pragma hdrstop 00028 //--------------------------------------------------------------------------- 00029 USEFORM("unMain.cpp", fmMain); 00030 //--------------------------------------------------------------------------- 00031 WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) 00032 { 00033 try 00034 { 00035 Application->Initialize(); 00036 Application->Title = "Operational amplifier simulator"; 00037 Application->CreateForm(__classid(TfmMain), &fmMain); 00038 Application->Run(); 00039 } 00040 catch (Exception &exception) 00041 { 00042 Application->ShowException(&exception); 00043 } 00044 catch (...) 00045 { 00046 try 00047 { 00048 throw Exception(""); 00049 } 00050 catch (Exception &exception) 00051 { 00052 Application->ShowException(&exception); 00053 } 00054 } 00055 return 0; 00056 } 00057 //---------------------------------------------------------------------------