This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

43
drums/main.cpp Normal file
View 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();
}