ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/app/VMM/win32/vmm.cpp
Revision: 188
Committed: Wed Jul 8 20:53:35 2009 UTC (16 years, 1 month ago) by francois
Original Path: magic/app/VMM/VMM/win32/vmm.cpp
File size: 4033 byte(s)
Log Message:
Compilation des derniers changements sous Borland et Slection possible dans VMM

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("typelic.cpp", Ftypelic);
46     USEFORM("veriwin.cpp", verimesh);
47     USEFORM("visu.cpp", Visufront);
48     USEFORM("visuctt.cpp", visucttform);
49     USEFORM("visugraph.cpp", graph);
50     USEFORM("visuparametrique.cpp", visupara);
51     USEFORM("visuwin.cpp", VisuWinform);
52     USEFORM("importcarte.cpp", fimcarte);
53     USEFORM("visuarbre.cpp", fvisuarbre);
54     USEFORM("recons.cpp", frecons);
55     USEFORM("log.cpp", winlog);
56 francois 98 USEFORM("operageo.cpp", opegeo);
57 francois 137 USEFORM("affmatrice.cpp", affmat);
58 francois 175 USEFORM("transform.cpp", wintransform);
59 5 //---------------------------------------------------------------------------
60     WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
61     {
62     try
63     {
64     #ifdef BREP_SLD
65     CoInitialize(NULL);
66     #endif
67     Application->Initialize();
68     Application->Title = "Visual MAGiC Modulaire";
69     Application->CreateForm(__classid(TMainForm), &MainForm);
70 francois 98 Application->CreateForm(__classid(TFtypelic), &Ftypelic);
71     Application->CreateForm(__classid(Tdepartwinform), &departwinform);
72     Application->CreateForm(__classid(Tconfigwin), &configwin);
73     Application->CreateForm(__classid(TAboutBox), &AboutBox);
74     Application->CreateForm(__classid(Tafm), &afm);
75     Application->CreateForm(__classid(Tcomc), &comc);
76     Application->CreateForm(__classid(Thelpwin), &helpwin);
77     Application->CreateForm(__classid(TAboutlicence), &Aboutlicence);
78     departwinform->ShowModal();
79 5 Application->Run();
80    
81     #ifdef BREP_SLD
82     CoUninitialize();
83     #endif
84    
85     }
86     catch (Exception &exception)
87     {
88     Application->ShowException(&exception);
89     }
90     catch (...)
91     {
92     try
93     {
94     throw Exception("");
95     }
96     catch (Exception &exception)
97     {
98     Application->ShowException(&exception);
99     }
100     }
101     return 0;
102     }
103     //---------------------------------------------------------------------------