Following the tails of my previous (answer) question ...
SharpSvn makes it easy to access the Subversion API:
SvnClient client = new SvnClient();
client.Authentication.DefaultCredentials = new NetworkCredential(username, password);
client.CheckOut(new Uri("http://xxx.yyy.zzz.aaa/svn/repository"), workingCopyDir);
On the other hand, calling the client API from C / C ++, as shown in minimal_client.c , requires coding "closer to the metal" as if on Subversion.
Are there Windows libraries for C ++ in Visual Studio 2003 that provide a simpler interface than what minimal_client uses?
If not, is there a VS2003 C ++ project (.vcproj file) that demonstrates getting the minimum client to run? I can compile minimal_client.c and link it using the following libraries
libsvn_client-1.lib libsvn_delta-1.lib libsvn_diff-1.lib libsvn_fs-1.lib libsvn_fs_base-1.lib libsvn_fs_fs-1.lib libsvn_ra-1.lib libsvn_ra_local-1.lib libsvn_ra_svn-1.lib libsvn_repos-1.lib libsvn_subr-1.lib libsvn_wc-1.lib libapr-1.lib libaprutil-1.lib xml.lib libneon.lib
but when I launch my application (in the debugger or start building the release without debugging), it starts for about 20 seconds without getting into the first line of main (), and then throws this exception:
An unhandled exception of type "System.TypeLoadException" occurred in the Unknown module.
Additional information: Failed to load the type apr_pool_tfrom the assembly minimal_client, Version = 1.0.3477.16033, Culture = neutral, PublicKeyToken = null.
I tried various combinations of libsvn_.lib and svn_.lib to no avail.
Any thoughts on what I'm doing wrong?
EDIT: " Win32" ( VS2003), . , :
if (svn_cmdline_init ("minimal_client", stderr) != EXIT_SUCCESS)
( ):
0x7c91b21a Win32ConsoleProject_minimal_client.exe: 0xC0000005: 0x00000010.
EDIT: , CRT svn stderr . Svn, ( ), NULL stderr ( , , stderr). , .