Vault API in VB

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
topcats
Posts: 28
Joined: Wed Jul 14, 2004 9:13 am
Location: Surrey, UK
Contact:

Vault API in VB

Post by topcats » Wed Sep 29, 2004 4:29 am

Yes I know the Vault API is 'unsupported'

However I was wondering if anyone had a simple template for the API version 2.06

I can't even login :( it does not get past the init stage.

Thanks

Tristan

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

Post by dan » Wed Sep 29, 2004 7:15 am

The best places to start are:

1. The command line client source code, which is in the Client API download at http://www.sourcegear.com/vault/downloads.asp

2. Jeremy Sheeley's blog at http://weblogs.asp.net/Jeremy_Sheeley/

topcats
Posts: 28
Joined: Wed Jul 14, 2004 9:13 am
Location: Surrey, UK
Contact:

i need it in VB

Post by topcats » Thu Sep 30, 2004 2:54 am

the code appears to be for C.

Which i don't know :((

I need an example for VB, i have tried to transpose the code but just fail.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Thu Sep 30, 2004 8:01 am

I converted the Csharp to VB using http://www.kamalpatel.net/ConvertCSharp2VB.aspx

The zip file of the VB solution is attached.
Attachments
VaultClientTemplateVB.zip
vault client template in VB
(3.08 KiB) Downloaded 764 times

topcats
Posts: 28
Joined: Wed Jul 14, 2004 9:13 am
Location: Surrey, UK
Contact:

doh!

Post by topcats » Mon Oct 04, 2004 5:31 am

yup i have done it again.
I think win the stupidity award of the year.

My coding much to my suprise was spot on and should have worked.

1 slight 'minor' issue.

The dev machine I was working on only have .NET IDE 2002 which is only compatible with .net1.0.

So i upgraded it to .NET IDE 2003 which works with .net1.1

So it all works fine now :)

Locked