41 lines
1.7 KiB
C++
41 lines
1.7 KiB
C++
#include <common/windows.hpp>
|
|
#include <common/versioninfo.hpp>
|
|
#include <common/clipbrd.hpp>
|
|
#include <guitar/mainfrm.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;
|
|
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("TabMaster",versionInfo.getProductNameString()+String(" ")+versionInfo.getProductVersion(),"mainMenu","APP_ICON");
|
|
GlobalDefs::outDebug("Loading accelerators.",GlobalDefs::Info);
|
|
mainFrame.loadAccelerators(TABACCELERATORS);
|
|
return mainFrame.messageLoop();
|
|
|
|
}
|
|
|