Initial
This commit is contained in:
43
drums/main.cpp
Normal file
43
drums/main.cpp
Normal file
@@ -0,0 +1,43 @@
|
||||
#include <common/windows.hpp>
|
||||
#include <common/versioninfo.hpp>
|
||||
#include <common/clipbrd.hpp>
|
||||
#include <drums/mainfrm.hpp>
|
||||
#include <drums/drums.hpp>
|
||||
//#include <guitar/globaldefs.hpp>
|
||||
//#include <guitar/guitar.hpp>
|
||||
//#include <guitar/splash.hpp>
|
||||
//#include <guitar/MessageBox.hpp>
|
||||
//#include <guitar/Registration.hpp>
|
||||
|
||||
int PASCAL WinMain(HINSTANCE /*hInstance*/,HINSTANCE /*hPrevInstance*/,LPSTR lpszCmdLine,int /*nCmdShow*/)
|
||||
{
|
||||
MainFrame mainFrame;
|
||||
VersionInfo versionInfo;
|
||||
/* VersionInfo versionInfo;
|
||||
String strCommandLine;
|
||||
strCommandLine=lpszCmdLine;
|
||||
|
||||
if(strCommandLine=="GENPERM")
|
||||
{
|
||||
Registration::getInstance().generatePermanentLicense();
|
||||
SplashScreen splash("GUITAR","2002 - Diversified Software Solutions. \"http:\\www.diversified-software.com\"",versionInfo.getProductNameString()+String(" ")+versionInfo.getProductVersion());
|
||||
splash.perform();
|
||||
}
|
||||
else if(!(strCommandLine=="NOLOGO"))
|
||||
{
|
||||
SplashScreen splash("GUITAR","2002 - Diversified Software Solutions. \"http:\\www.diversified-software.com\"",versionInfo.getProductNameString()+String(" ")+versionInfo.getProductVersion());
|
||||
splash.perform();
|
||||
}
|
||||
// GlobalDefs::setLogLevel(GlobalDefs::Verbose);
|
||||
GlobalDefs::setLogLevel(GlobalDefs::NoLog);
|
||||
GlobalDefs::setRegisteredClipboardFormat(Clipboard::registerClipboardFormat(String("[")+versionInfo.getProductNameString()+String(",")+versionInfo.getProductVersion()+String("]")));
|
||||
GlobalDefs::outDebug("Application started.");
|
||||
GlobalDefs::outDebug("Creating main window.",GlobalDefs::Info);
|
||||
*/
|
||||
mainFrame.createWindow("Drums",versionInfo.getProductNameString()+String(" ")+versionInfo.getProductVersion(),"mainMenu","APP_ICON");
|
||||
// GlobalDefs::outDebug("Loading accelerators.",GlobalDefs::Info);
|
||||
mainFrame.loadAccelerators(APPACCELERATORS);
|
||||
return mainFrame.messageLoop();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user