CPlaneTApp::CPlaneTApp() { // TODO: 在此处添加构造代码, // 将所有重要的初始化放置在 InitInstance 中 GlobalInit(); }
PdfPlugin::PdfPlugin() : plcl::Plugin(L"PDF", L".pdf") { plcl::Plugin::SignatureInfo const signatures[] = { SIGNATURE_INFO(pdf_signature) }; SetSignatures(signatures, arraysize(signatures)); GlobalInit(); }
int main(int argc, char *argv[]) { GlobalInit(); QApplication a(argc, argv); MainWindow w; w.setWindowTitle("Photometric Stereo By LYF.CURNO"); w.statusBar()->showMessage(FromStdStringToQString(version)); w.setWindowIcon(QIcon(":/Icon.png")); a.setStyleSheet(FromStdStringToQString(global_css)); #ifndef DEPLOY //w.LoadModel("F:\\Research\\Project\\Data\\Experimentaldata\\Rouned Cube"); #endif w.showMaximized(); auto retval = a.exec(); return 0; }
void Robot::RobotInit() { RobotMap::init(); GlobalInit(); // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS claw = new Claw(); driveTrain = new DriveTrain(); shooter = new Shooter(); feeder = new Feeder(); tusks = new Tusks(); // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS // This MUST be here. If the OI creates Commands (which it very likely // will), constructing it during the construction of CommandBase (from // which commands extend), subsystems are not guaranteed to be // yet. Thus, their requires() statements may grab null pointers. Bad // news. Don't move it. oi = new OI(); lw = LiveWindow::GetInstance(); // instantiate the command used for the autonomous period // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS autonomousCommand = new AutonomousGroup(); // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS // Print version information string gitVersion = GIT_VERSION; if (strlen(GIT_TAG)) { gitVersion += " ("; gitVersion += GIT_TAG; gitVersion += ")"; } // Display on NetConsole: printf("\nSW version: %s\n", gitVersion.c_str()); printf("Built on %s %s\n\n", BUILD_DATE, BUILD_TIME);\ // Display on SmartDashboard: SmartDashboard::PutString("Software Version: ", gitVersion); initTimer.Start(); }
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { SetCurrentDirectory(_T("../Release")); GlobalInit(); WNDCLASSEX wcex; HWND hWnd; MSG msg; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hInstance; wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); wcex.lpszMenuName = NULL; wcex.lpszClassName = szWindowClass; wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_APPLICATION)); if (!RegisterClassEx(&wcex)) { MessageBox(NULL, _T("Call to RegisterClassEx failed!"), _T("Rhythm Runner"), MB_OK); return 1; } hWnd = CreateWindow( szWindowClass, szTitle, WS_OVERLAPPEDWINDOW & ~WS_THICKFRAME & ~WS_MAXIMIZEBOX, //设置窗口样式,不可改变大小,不可最大化 CW_USEDEFAULT, CW_USEDEFAULT, WNDWIDTH, WNDHEIGHT + WNDTITLEBARHEIGHT, NULL, NULL, hInstance, NULL ); if (!hWnd) { MessageBox(NULL, _T("Call to CreateWindow failed!"), _T("Mega Plane"), MB_OK); return 1; } ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); // Main message loop while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return (int)msg.wParam; }
VerbosePrint("IntelSEAPI: %s=%s | Loaded from: %s\n", var_name, get_environ_value(var_name).c_str(), mdlinfo.path.c_str()); std::string value = var_name; value += "="; value += mdlinfo.path; std::string jit_val = jit_var_name; jit_val += "=" + mdlinfo.path; setenv(_strdup(value.c_str())); VerbosePrint("IntelSEAPI: setting %s\n", value.c_str()); setenv(_strdup(jit_val.c_str())); VerbosePrint("IntelSEAPI: setting %s\n", jit_val.c_str()); return 1; } int nSetLib = GlobalInit(); void AtExit(); extern "C" { extern __itt_global ITT_JOIN(INTEL_ITTNOTIFY_PREFIX, _ittapi_global); } bool g_bInitialized = false; __itt_global* GetITTGlobal() { return &ITT_JOIN(INTEL_ITTNOTIFY_PREFIX, _ittapi_global); }