]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/utilsexc.cpp
   1 ///////////////////////////////////////////////////////////////////////////// 
   2 // Name:        src/palmos/utilsexec.cpp 
   3 // Purpose:     wxExecute implementation for PalmOS 
   4 // Author:      William Osborne - minimal working wxPalmOS port 
   8 // Copyright:   (c) William Osborne 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  12 // ============================================================================ 
  14 // ============================================================================ 
  16 // ---------------------------------------------------------------------------- 
  18 // ---------------------------------------------------------------------------- 
  20 // For compilers that support precompilation, includes "wx.h". 
  21 #include "wx/wxprec.h" 
  33         #include "wx/stream.h" 
  35     #include "wx/module.h" 
  38 #include "wx/process.h" 
  40 #include "wx/apptrait.h" 
  49     #include "wx/dde.h"         // for WX_DDE hack in wxExecute 
  52 // ---------------------------------------------------------------------------- 
  54 // ---------------------------------------------------------------------------- 
  56 // ---------------------------------------------------------------------------- 
  57 // this module globals 
  58 // ---------------------------------------------------------------------------- 
  60 // we need to create a hidden window to receive the process termination 
  61 // notifications and for this we need a (Win) class name for it which we will 
  62 // register the first time it's needed 
  63 static const wxChar 
*wxMSWEXEC_WNDCLASSNAME 
= wxT("_wxExecute_Internal_Class"); 
  64 static const wxChar 
*gs_classForHiddenWindow 
= NULL
; 
  66 // ---------------------------------------------------------------------------- 
  68 // ---------------------------------------------------------------------------- 
  70 // ============================================================================ 
  72 // ============================================================================ 
  74 // ============================================================================ 
  75 // wxExecute functions family 
  76 // ============================================================================ 
  80 // connect to the given server via DDE and ask it to execute the command 
  81 static bool wxExecuteDDE(const wxString
& ddeServer
, 
  82                          const wxString
& ddeTopic
, 
  83                          const wxString
& ddeCommand
) 
  90 long wxExecute(const wxString
& cmd
, int flags
, wxProcess 
*handler
) 
  95 long wxExecute(wxChar 
**argv
, int flags
, wxProcess 
*handler
)