ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/app/VMM/win32/vmm.cpp
Revision: 5
Committed: Tue Jun 12 20:26:34 2007 UTC (18 years, 2 months ago)
Original Path: magic/app/VMM/VMM/win32/vmm.cpp
File size: 4043 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     // vmm.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     USEFORM("importcarte.cpp", fimcarte);
54     USEFORM("visuarbre.cpp", fvisuarbre);
55     USEFORM("recons.cpp", frecons);
56     USEFORM("log.cpp", winlog);
57     //---------------------------------------------------------------------------
58     WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
59     {
60     try
61     {
62     #ifdef BREP_SLD
63     CoInitialize(NULL);
64     #endif
65     Application->Initialize();
66     Application->Title = "Visual MAGiC Modulaire";
67     Application->CreateForm(__classid(TMainForm), &MainForm);
68     Application->CreateForm(__classid(TFtypelic), &Ftypelic);
69     Application->CreateForm(__classid(Tdepartwinform), &departwinform);
70     Application->CreateForm(__classid(Tconfigwin), &configwin);
71     Application->CreateForm(__classid(TAboutBox), &AboutBox);
72     Application->CreateForm(__classid(Tccfwinform), &ccfwinform);
73     Application->CreateForm(__classid(Tafm), &afm);
74     Application->CreateForm(__classid(Tcomc), &comc);
75     Application->CreateForm(__classid(Thelpwin), &helpwin);
76     Application->CreateForm(__classid(TAboutlicence), &Aboutlicence);
77     departwinform->ShowModal();
78     Application->Run();
79    
80     #ifdef BREP_SLD
81     CoUninitialize();
82     #endif
83    
84     }
85     catch (Exception &exception)
86     {
87     Application->ShowException(&exception);
88     }
89     catch (...)
90     {
91     try
92     {
93     throw Exception("");
94     }
95     catch (Exception &exception)
96     {
97     Application->ShowException(&exception);
98     }
99     }
100     return 0;
101     }
102     //---------------------------------------------------------------------------