> I don't know what wxExecute internally does. But if you look at
> https://svn.collab.net/repos/tortoisesvn/trunk/src/TortoiseShell/ContextMenu.cpp
>
> method CShellExt::InvokeCommand() you can see how the shell extension
> part calls TortoiseProc. Maybe you can use that.
Looked at that... apparently not much different than the shell extension?
// from utilsexc.cpp
bool ok = ::CreateProcess
(
NULL, // application name (use only cmd line)
(wxChar *)
command.c_str(), // full command line
NULL, // security attributes: defaults for
both
NULL, // the process and its main thread
redirect, // inherit handles if we use pipes
dwFlags, // process creation flags
NULL, // environment (use the same)
NULL, // current directory (use the same)
&si, // startup info (unused here)
&pi // process info
) != 0;
The only two real differences that I see are
1. NULL instead of tortoiseMergePath
2. redirect (boolean, true in this case) instead of FALSE
Could it really be that first parameter? MSDN explicitely says that
/lpApplicationName can be NULL. Hmm...?
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp)
/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Jun 22 00:10:38 2005