Integration API

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
danpetitt
Posts: 9
Joined: Sun Jun 27, 2004 10:04 am

Integration API

Post by danpetitt » Fri Mar 31, 2006 1:04 pm

I produce a free Build Automation tool called coderanger.com BuildIT that currently supports SourceSafe using its COM API.

I was wondering if Vault had a similar API and if its easily available/accessible ... I dont use .net, just plain old C++ with Visual Studio 6 :wink:

Any help would be greatly appreciated so as to add support to my program for the many people I have using it.

Thanks
Imagecoderanger.com

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Fri Mar 31, 2006 3:16 pm

Vault has a Client API that is available from our Downloads page:
http://www.sourcegear.com/vault/downloads

One thing to note:
The Vault Client API was developed using Microsoft’s Visual Studio .NET. When code is compiled in the.NET environment, it creates managed .dll’s. Native C++ and COM are unmanaged code.

One of our Vault/Visual Basic 6 users was able to work around this by creating a COM interface. Perhaps the same type of thing can be done for C++.

http://support.sourcegear.com/viewtopic.php?t=1180
Linda Bauer
SourceGear
Technical Support Manager

danpetitt
Posts: 9
Joined: Sun Jun 27, 2004 10:04 am

Post by danpetitt » Sat Apr 01, 2006 5:58 am

Unfortunately these instructions didnt work for me. I managed to build the dll but when I try to regasm it, it says it is not a valid .net assembly.

I have never used VS2005 or C# before so I am a bit of a loss on all this, it feels overly complicated compared to VS6 and C++.

I can understand if you are not able to, but is there any other help you or anyone can give me.
Imagecoderanger.com

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Mon Apr 03, 2006 8:45 am

If that doesn't work, try this MSDN article:

http://msdn.microsoft.com/library/defau ... vb04g9.asp

danpetitt
Posts: 9
Joined: Sun Jun 27, 2004 10:04 am

Post by danpetitt » Tue Apr 04, 2006 1:25 pm

Thanks, but it doesnt really help, I am not using VB I am using Visual Studio 6 C++.
Imagecoderanger.com

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Apr 04, 2006 3:11 pm

I don't know if this would be at all helpful, but here's a series of articles about using Managed C++ and managed and unmanaged code together:

http://www.oreillynet.com/pub/au/1070

This is about creating a wrapper with Managed C++:

http://www.ondotnet.com/pub/a/dotnet/20 ... part3.html

The author is a well-known .NET expert.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply