The Winamp Remote Control suite
a remote control client and plugin for Winamp 2.x, 5.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
remote.cpp
Go to the documentation of this file.
1 /*
2 winamp remote control suite ŠPatrick Michael Martin 2000, 2001, 2002
3 
4 Copyright (C) 2000,2001,2002 Patrick M. Martin
5 
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10 
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 
20 Patrick M. Martin may be reached by email at patrickmmartin@gmail.com.
21 */
22 
23 #include <vcl.h>
24 #pragma hdrstop
25 
26 USEFORM("AboutF.cpp", frmAbout);
27 USEFORM("SettingsF.cpp", frmSettings);
28 USEFORM("CommandF.cpp", frmCommands);
29 USEFORM("ServersF.cpp", frmServers);
30 USEFORM("DetailsF.cpp", frmDetails);
31 USEFORM("PlaylistF.cpp", frmPlaylist);
32 USEFORM("MainF.cpp", frmMain);
33 USEFORM("messageF.cpp", frmMessage);
34 USEUNIT("RPCFuncsU.cpp");
35 USEUNIT("WAINT.CPP");
36 USEUNIT("ColourU.cpp");
37 USEUNIT("RFC1060U.CPP");
38 USEUNIT("VersionInfoU.cpp");
39 USELIB("..\lib\winampinterface.lib");
40 USEUNIT("remotestrs.cpp");
41 USE("remotestrs.h", File);
42 USERC("winampremote.rc");
43 USEUNIT("ServerEnumerator.cpp");
44 USEUNIT("ServerTester.cpp");
45 USERC("windowsthemes.rc");
46 USEUNIT("GlassExtender.cpp");
47 USERES("remote.RES");
48 USEUNIT("WinampClientBase.cpp");
49 USEUNIT("IPAddressResolver.cpp");
50 USEUNIT("CursorGuard.cpp");
51 USEUNIT("AboutGLDisplay.cpp");
52 USEFORM("remoteDM.cpp", dmRemote); /* TDataModule: File Type */
53 //---------------------------------------------------------------------------
54 #include "remotestrs.h"
55 
56 WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
57 {
58  Application->Title = sWinampRemoteClient;
59  try{
60  Application->Initialize();
61  Application->CreateForm(__classid(TdmRemote), &dmRemote);
62  Application->CreateForm(__classid(TfrmMain), &frmMain);
63  Application->CreateForm(__classid(TfrmPlaylist), &frmPlaylist);
64  Application->CreateForm(__classid(TfrmCommands), &frmCommands);
65  Application->CreateForm(__classid(TfrmSettings), &frmSettings);
66  Application->Run();
67  }
68  catch (Exception &exception)
69  {
70  Application->ShowException(&exception);
71  }
72  return 0;
73 }
74