Re: source code verification

Tech-Archive recommends: Speed Up your PC by fixing your registry



David Ching escribió:
"Julián Rodríguez Bajo" <julian.rodriguez@xxxxxxxxxx> wrote in message news:u8tn8u2zHHA.5380@xxxxxxxxxxxxxxxxxxxxxxx
Hi Dani.

In my company, we use a SCC string for every source file used, like:

static LPCTSTR VSSID = _T("$Header:$")

This way, every time you check in the source file, VSS (or any other SCC system that supports keyword expansion) expands "$Header:$" to something like "$Header: /Sockets/Test/TestApp.cpp 4 18/02/07 user $", This string is included in the final executable, so later you can check (whith ident, strings or any string-find utility) what source files were used to build an exe, dll or ocx. Output is something like:


I would say this is a great diagnostics for development, but due to issues of different tools and SDK's that could be used in the build process, it still isn't sufficient to guarantee 100% that the .exe you have is identical to the one that was deployed.

-- David




Of course you are right, David. But in a small company with a development team of about 10 programmers as is my case, it is really easy to force everybody use the same tools and SDKs. Very different situation in a bigger company with a lot of development teams.

At least, you allways have valuable data knowing with what version of one particular file is one executable built, since you can check if the problem your customer is reporting was corrected in a posterior version of the same file.

It is not a binary equivalence system, but a "do we solve this issue in a later version" helper.

Regards.

.



Relevant Pages

  • Re: source code verification
    ... In my company, we use a SCC string for every source file used, like: ... This way, every time you check in the source file, VSS (or any other SCC ... build an exe, dll or ocx. ...
    (microsoft.public.vc.mfc)
  • Re: 2nd RfD: Directories
    ... The source file of the string is important for the expansion, ... where the consumer is not in the same file as the string); ... generic locations in the hierarchy. ...
    (comp.lang.forth)
  • Re: Changing the Text In a Text Box
    ... David, thanks once again. ... books and learning new languages. ... back and forth between std:string and System:: String. ... Is there some sort of destructor needed in association with gcnew? ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Process arbitrary #lists (continued)
    ... I think what you might have meant was: "the gloriously elegant C++ solution". ... there's no need for me to have to read in an entire file so I can check how many lists there are before I can allocate space for them. ... in C++ if you do have a file in memory someplace (at least in a string) you can read from it as if it were a stream. ... Let me clarify std::map for you a little bit, David. ...
    (comp.lang.pl1)
  • Re: Can this VBA for work on text files be modified for a different job ?
    ... ChDrive myPath ... except for cases where the source file contains ... Dim SourceNum As Integer ... Dim myPath As String ...
    (microsoft.public.excel)