[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Calling svn.exe from C++ code!

From: fantasy1215 <albertkong1984_at_163.com>
Date: Fri, 18 Jun 2010 19:47:54 -0700 (PDT)

For some reason, I need to call svn.exe in my code, following is just a test
hard written code,
What am I doing is just 'svn diff'.
but it doesn't work. Not touch a c:\abc123.txt file.
Thanks in advance!
        TCHAR szExePath[] = TEXT("C:\\Program Files\\Subversion\\bin\\svn.exe");
        SHELLEXECUTEINFO shinfo = {0};
        shinfo.cbSize = sizeof(SHELLEXECUTEINFO);
        shinfo.fMask = SEE_MASK_NO_CONSOLE;
        shinfo.hwnd = NULL;
        shinfo.lpVerb = TEXT("open");
        shinfo.lpFile = szExePath;
        shinfo.lpParameters = TEXT(" diff -r 755:HEAD E:\\workcopy\\Main.cpp >
        shinfo.lpDirectory = NULL;
        shinfo.nShow = SW_SHOW;
        shinfo.hInstApp = NULL;
        BOOL bRet = FALSE;
        bRet = ::ShellExecuteEx(&shinfo); --------->here return value is TRUE,
and I saw console flash

View this message in context: http://old.nabble.com/Calling-svn.exe-from-C%2B%2B-code%21-tp28932381p28932381.html
Sent from the Subversion Users mailing list archive at Nabble.com.
Received on 2010-06-19 04:48:32 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.