⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utilsexc.cpp

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 CPP
字号:
/////////////////////////////////////////////////////////////////////////////// Name:        utilsexec.cpp// Purpose:     Execution-related utilities// Author:      Stefan Csomor// Modified by: // Created:     1998-01-01// RCS-ID:      $Id: utilsexc.cpp,v 1.20 2005/01/27 20:59:31 SC Exp $// Copyright:   (c) Stefan Csomor// Licence:       wxWindows licence/////////////////////////////////////////////////////////////////////////////#include "wx/wxprec.h"#ifndef WX_PRECOMP    #include "wx/log.h"    #include "wx/utils.h"#endif //ndef WX_PRECOMP#ifndef __DARWIN__#include "wx/mac/private.h"#include "LaunchServices.h"long wxExecute(const wxString& command, int flags, wxProcess *WXUNUSED(handler)){    wxASSERT_MSG( flags == wxEXEC_ASYNC,        wxT("wxExecute: Only wxEXEC_ASYNC is supported") );    FSRef fsRef ;    OSErr err = noErr ;    err = wxMacPathToFSRef( command , &fsRef ) ;    if ( noErr == err )    {        err = LSOpenFSRef( &fsRef , NULL ) ;    }    // 0 means execution failed. Returning non-zero is a PID, but not    // on Mac where PIDs are 64 bits and won't fit in a long, so we    // return a dummy value for now.    return ( err == noErr ) ? -1 : 0;}#endif //ndef __DARWIN__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -