]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/utilsexc.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: palmos/utilsexec.cpp
3 // Purpose: wxExecute implementation for MSW
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
38 #include "wx/stream.h"
39 #include "wx/process.h"
41 #include "wx/apptrait.h"
43 #include "wx/module.h"
52 #include "wx/dde.h" // for WX_DDE hack in wxExecute
55 // ----------------------------------------------------------------------------
57 // ----------------------------------------------------------------------------
59 // ----------------------------------------------------------------------------
60 // this module globals
61 // ----------------------------------------------------------------------------
63 // we need to create a hidden window to receive the process termination
64 // notifications and for this we need a (Win) class name for it which we will
65 // register the first time it's needed
66 static const wxChar
*wxMSWEXEC_WNDCLASSNAME
= wxT("_wxExecute_Internal_Class");
67 static const wxChar
*gs_classForHiddenWindow
= NULL
;
69 // ----------------------------------------------------------------------------
71 // ----------------------------------------------------------------------------
73 // ============================================================================
75 // ============================================================================
77 // ============================================================================
78 // wxExecute functions family
79 // ============================================================================
83 // connect to the given server via DDE and ask it to execute the command
84 static bool wxExecuteDDE(const wxString
& ddeServer
,
85 const wxString
& ddeTopic
,
86 const wxString
& ddeCommand
)
93 long wxExecute(const wxString
& cmd
, int flags
, wxProcess
*handler
)
98 long wxExecute(wxChar
**argv
, int flags
, wxProcess
*handler
)