ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/app/VMM/win32/vmm2.cpp
Revision: 5
Committed: Tue Jun 12 20:26:34 2007 UTC (18 years, 2 months ago)
Original Path: magic/app/VMM/VMM/win32/vmm2.cpp
File size: 3894 byte(s)
Log Message:

File Contents

# User Rev Content
1 5 //------------------------------------------------------------
2     //------------------------------------------------------------
3     // MAGiC
4     // Jean Christophe Cuillière et Vincent FRANCOIS
5     // Département de Génie Mécanique - UQTR
6     //------------------------------------------------------------
7     // Le projet MAGIC est un projet de recherche du département
8     // de génie mécanique de l'Université du Québec à
9     // Trois Rivières
10     // Les librairies ne peuvent être utilisées sans l'accord
11     // des auteurs (contact : francois@uqtr.ca)
12     //------------------------------------------------------------
13     //------------------------------------------------------------
14     //
15     // vmm2.cpp
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 à 11H26
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #include "gestionversion.h"
24     #include <vcl.h>
25     #include <atl\atlmod.h>
26     #include "departwin.h"
27     #pragma hdrstop
28     //---------------------------------------------------------------------------
29     USEFORM("about.cpp", AboutBox);
30     USEFORM("alicence.cpp", Aboutlicence);
31     USEFORM("Applifonc.cpp", afm);
32     USEFORM("carte3dform.cpp", wincarte);
33     USEFORM("ccfwin.cpp", ccfwinform);
34     USEFORM("compocarte.cpp", comc);
35     USEFORM("config.cpp", configwin);
36     USEFORM("departwin.cpp", departwinform);
37     USEFORM("editwin.cpp", EditeurWinform);
38     USEFORM("expwin.cpp", expwinf);
39     USEFORM("help.cpp", helpwin);
40     USEFORM("importcosmos.cpp", CosmosWin);
41     USEFORM("magicform.cpp", VisuMagicform);
42     USEFORM("main.cpp", MainForm);
43     USEFORM("matwin.cpp", matwinform);
44     USEFORM("solveur.cpp", fsolve);
45     USEFORM("transform.cpp", wintransform);
46     USEFORM("typelic.cpp", Ftypelic);
47     USEFORM("veriwin.cpp", verimesh);
48     USEFORM("visu.cpp", Visufront);
49     USEFORM("visuctt.cpp", visucttform);
50     USEFORM("visugraph.cpp", graph);
51     USEFORM("visuparametrique.cpp", visupara);
52     USEFORM("visuwin.cpp", VisuWinform);
53     //---------------------------------------------------------------------------
54     WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
55     {
56     try
57     {
58     #ifdef BREP_SLD
59     CoInitialize(NULL);
60     #endif
61     Application->Initialize();
62     Application->Title = "Visual MAGiC Modulaire";
63     Application->CreateForm(__classid(TMainForm), &MainForm);
64     Application->CreateForm(__classid(TFtypelic), &Ftypelic);
65     Application->CreateForm(__classid(Tdepartwinform), &departwinform);
66     Application->CreateForm(__classid(Tconfigwin), &configwin);
67     Application->CreateForm(__classid(TAboutBox), &AboutBox);
68     Application->CreateForm(__classid(Tccfwinform), &ccfwinform);
69     Application->CreateForm(__classid(Tafm), &afm);
70     Application->CreateForm(__classid(Tcomc), &comc);
71     Application->CreateForm(__classid(Thelpwin), &helpwin);
72     Application->CreateForm(__classid(TAboutlicence), &Aboutlicence);
73     departwinform->ShowModal();
74     Application->Run();
75    
76     #ifdef BREP_SLD
77     CoUninitialize();
78     #endif
79    
80     }
81     catch (Exception &exception)
82     {
83     Application->ShowException(&exception);
84     }
85     catch (...)
86     {
87     try
88     {
89     throw Exception("");
90     }
91     catch (Exception &exception)
92     {
93     Application->ShowException(&exception);
94     }
95     }
96     return 0;
97     }
98     //---------------------------------------------------------------------------