本文整理汇总了C++中MyApp::Run方法的典型用法代码示例。如果您正苦于以下问题:C++ MyApp::Run方法的具体用法?C++ MyApp::Run怎么用?C++ MyApp::Run使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MyApp
的用法示例。
在下文中一共展示了MyApp::Run方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main()
{
MyApp *app = new MyApp();
app->Run();
delete app;
return 0;
}
示例2: main
int main()
{
MyApp* pcMyApp;
qInstallMsgHandler( print_msg );
pcMyApp = new MyApp( "application/x-vnd.Procton-beabrowse" );
pcMyApp->Run();
return( 0 );
}
示例3: Run
void TestClearBuffer::Run()
{
MyApp app;
try
{
app.Init(Punk::Config());
System::Mouse::Instance()->LockInWindow(false);
app.Run();
}
catch(...)
{
m_result = false;
}
}
示例4: main
int main( int argc, char ** argv )
{
int c;
int nNameLen = strlen( argv[0] );
if ( nNameLen >= 5 && strcasecmp( argv[0] + nNameLen - 5, "pulse" ) == 0 ) {
g_bBarView = true;
}
while( (c = getopt_long (argc, argv, "hvfgb", long_opts, (int *) 0)) != EOF )
{
switch( c )
{
case 0:
break;
case 'h':
g_nShowHelp = true;
break;
case 'v':
g_nShowVersion = true;
break;
case 'f':
sscanf( optarg, "%f,%f,%f,%f",
&g_cWinRect.left,&g_cWinRect.top,&g_cWinRect.right,&g_cWinRect.bottom );
g_bWindowRectSet = true;
break;
case 'g':
g_bBarView = false;
break;
case 'b':
g_bBarView = true;
break;
default:
usage( argv[0], false );
exit( 1 );
break;
}
}
if ( g_nShowVersion ) {
printf( "Syllable CPU Monitor 1.0\n" );
exit( 0 );
}
if ( g_nShowHelp ) {
usage( argv[0], true );
exit( 0 );
}
MyApp* pcApp = new MyApp;
pcApp->Run();
}