how to use SourceGear Vault Client and CPP-Builder

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

Moderator: SourceGear

Post Reply
Shapour
Posts: 5
Joined: Mon Mar 22, 2010 5:47 am

how to use SourceGear Vault Client and CPP-Builder

Post by Shapour » Mon Mar 22, 2010 6:00 am

Hi Community,
how can I Use the SourceGear Vault Client 5.0.3 (18802) in a cpp builder Professional Project.
(Borland® C++Builder® für Microsoft® Windows™ Version 10.0.2288.42451 Update 2 Copyright © 2005 Borland® Software)

thanks
shapour

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

Re: how to use SourceGear Vault Client and CPP-Builder

Post by lbauer » Mon Mar 22, 2010 10:38 am

Vault doesn't support integration with Borland products, but you can use the Vault GUI Client for source control operations and do your development in CPP-Builder. Add your code to Vault with the Vault Client, then set the Vault Client working directories to the location of your project on disk.
Linda Bauer
SourceGear
Technical Support Manager

Shapour
Posts: 5
Joined: Mon Mar 22, 2010 5:47 am

Re: how to use SourceGear Vault Client and CPP-Builder

Post by Shapour » Tue Mar 23, 2010 1:55 am

Hello Linda Bauer,

thanks for your Replay. The Vault works fine now, but I have problem with some files, and I don't know why.

if I want to see the changes in some files, I get following Error.

"File has a NUL byte at offset 8818; ths is not valid for encoding 'Western European (ISO-8859-1)'
the offset is not always the same !
...

I can compare another Cpp files without Error and this is a cpp file and not a binary file.
thanks
Shapour

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

Re: how to use SourceGear Vault Client and CPP-Builder

Post by lbauer » Wed Mar 24, 2010 9:11 am

Are you diffing the files with SourceGear's Diff/Merge tool?
Linda Bauer
SourceGear
Technical Support Manager

Shapour
Posts: 5
Joined: Mon Mar 22, 2010 5:47 am

Re: how to use SourceGear Vault Client and CPP-Builder

Post by Shapour » Thu Mar 25, 2010 1:29 am

no, I just want to compare and find the changes.

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

Re: how to use SourceGear Vault Client and CPP-Builder

Post by lbauer » Thu Mar 25, 2010 9:24 am

if I want to see the changes in some files, I get following Error.
I could use more information on how you are trying to see the changes. Are you using a View command in Vault?
Linda Bauer
SourceGear
Technical Support Manager

Shapour
Posts: 5
Joined: Mon Mar 22, 2010 5:47 am

Re: how to use SourceGear Vault Client and CPP-Builder

Post by Shapour » Fri Mar 26, 2010 1:39 am

I use "show differences" in Vault context menu. (using right mouse click)

jeffhostetler
Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
Contact:

Re: how to use SourceGear Vault Client and CPP-Builder

Post by jeffhostetler » Fri Mar 26, 2010 11:51 am

File has a NUL byte at offset...
This message means that there is a 0x00 byte in the file.
DiffMerge is trying to import the 2 source files and figure
out the character encoding so that it can convert them to
UNICODE for presentation/analysis. Unfortunately, the NUL
byte is not a valid UNICODE character so the conversion
fails.

Most of the time that conversion error indicates that DiffMerge
was given a pair of binary files, such as images or MS office
documents.

There have been a few cases reported where there was a NUL
byte in a known source file such as yours that caused this
message. Usually, it was the case that there was a bogus
whitespace character somewhere in the file.

Can you look in the file at that offset and see if that is the case?

jeff

Shapour
Posts: 5
Joined: Mon Mar 22, 2010 5:47 am

Re: how to use SourceGear Vault Client and CPP-Builder

Post by Shapour » Mon Mar 29, 2010 12:55 am

thanks jeff,
but how can I find this offset?
is it the Line number ?

jeffhostetler
Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
Contact:

Re: how to use SourceGear Vault Client and CPP-Builder

Post by jeffhostetler » Mon Mar 29, 2010 5:40 am

I guess that wasn't the most useful error message. Sorry.

The "offset" is the absolute index of the NUL byte in the file.
It is not the line number.

I'm not sure what the easiest way to find this is with the tools
you have installed on your system. If you have CYGWIN installed,
try using "od -c" or a "cat -v" on it. If you have EMACS installed,
you can search using ^S^Q^space. I've not used Borland's tools,
so I don't know what editing/inspection tools they have. Usually,
you can just eyeball it in an editor.

jeff

Post Reply