Click here to Skip to main content
15,913,331 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWill this work in C++ (Vector, Struct) Pin
resolvequestion27-Jul-09 6:40
resolvequestion27-Jul-09 6:40 
AnswerRe: Will this work in C++ (Vector, Struct) Pin
Chris Losinger27-Jul-09 9:10
professionalChris Losinger27-Jul-09 9:10 
Questionpolynomial addition with array using C++ Pin
beulahponmalar27-Jul-09 6:29
beulahponmalar27-Jul-09 6:29 
AnswerRe: polynomial addition with array using C++ Pin
Maximilien27-Jul-09 6:37
Maximilien27-Jul-09 6:37 
QuestionNotify Events When Event log is Full Pin
Raghu.Amil27-Jul-09 5:59
Raghu.Amil27-Jul-09 5:59 
AnswerRe: Notify Events When Event log is Full Pin
David Crow27-Jul-09 6:04
David Crow27-Jul-09 6:04 
QuestionDistribute application across network Pin
vikrant kpr27-Jul-09 5:10
vikrant kpr27-Jul-09 5:10 
QuestionBit of an odd one, vssver2, time_t and DWORD Pin
J4amieC27-Jul-09 4:43
J4amieC27-Jul-09 4:43 
Excuse any ignorance im just a lowely .NET programmer and have very little c++ experience Big Grin | :-D

So i'm trying to disect vssver2.scc files for forensic purposes (don't ask Hmmm | :| ) and have found some information. mainly from here: http://alinconstantin.dtdns.net/WebDocs/SCC/VssVerScc.htm[^]

Towards the bottom of this page it gives some hint as to the structure of this file:

A vssver.scc file is composed of 3 sections:

    * a FileHeader section of 32 bytes size

          struct FileHeader
          {
             DWORD       dwSignature;        /* 0x00011234 */
             BYTE[16]    arrDatabaseGuid;    /* a GUID identifying the VSS database associated with the vssver2.scc file */
             DWORD       dwChecksum;         /* a checksum of the vssver2.scc file */
             DWORD       dwProjectID;        /* the number identifying the project from VSS database accociated with the vssver2.scc files */
             DWORD       dwFileEntries;      /* the number of file entries stored in the vssver2.scc file and following this structure */
          }

    * a number of FileEntry sections, each of them 16 bytes, one entry per each file tracked by the vssver2.scc file

          struct FileEntry
          {
             DWORD       dwFileID;           /* the number identifying the file in the VSS database that is tracked by this vssver.scc file */
             DWORD       dwFileChecksum;     /* the file's checksum */
             DWORD       dwFileTimestamp;    /* a file timestamp */
             DWORD       dwFileVersion;      /* the version of the file from the VSS database that you have locally */
          }

    * a FileNames section in the end of the file that contains
          o The null-terminated project name associated with this vssver2.scc file
          o A list of null-terminated file names that have entries in the FileEntry section


I have writeen a small c# app to read this information and I just wanted to check a few things.

1) is a DWORD is akin to a uint in .NET? In code using a BinaryReader I have uint myint = BitConverter.ToUInt32(reader.ReadBytes(4) ,0); - does that look right?
2) I was assuming that the field dwFileTimestamp would be a c++ time_t so I had the code DateTime dt = new DateTime(1970,1,1).AddSeconds(dwFileTimestamp); but this does not produce expected results (dates all over the place from 2064 to 2001). Question is, is there any other usual way that dates/times are stored in c++ ? any weird ones that are not really used any more? Any ideas?

TIA
AnswerRe: Bit of an odd one, vssver2, time_t and DWORD Pin
Rajesh R Subramanian27-Jul-09 7:11
professionalRajesh R Subramanian27-Jul-09 7:11 
GeneralRe: Bit of an odd one, vssver2, time_t and DWORD Pin
J4amieC27-Jul-09 23:02
J4amieC27-Jul-09 23:02 
GeneralRe: Bit of an odd one, vssver2, time_t and DWORD Pin
Rajesh R Subramanian28-Jul-09 5:36
professionalRajesh R Subramanian28-Jul-09 5:36 
QuestionHow to disable the Comport Error dialog? Pin
THAQCD27-Jul-09 4:05
THAQCD27-Jul-09 4:05 
QuestionSpecifying outgoing UDP port? Pin
Souldrift27-Jul-09 3:54
Souldrift27-Jul-09 3:54 
AnswerRe: Specifying outgoing UDP port? Pin
Rathore Amit27-Jul-09 4:42
Rathore Amit27-Jul-09 4:42 
QuestionHow to delete a directory Pin
V K 227-Jul-09 2:54
V K 227-Jul-09 2:54 
AnswerRe: How to delete a directory Pin
Rajesh R Subramanian27-Jul-09 3:04
professionalRajesh R Subramanian27-Jul-09 3:04 
GeneralRe: How to delete a directory Pin
V K 227-Jul-09 3:12
V K 227-Jul-09 3:12 
GeneralRe: How to delete a directory Pin
Rajesh R Subramanian27-Jul-09 3:15
professionalRajesh R Subramanian27-Jul-09 3:15 
QuestionItem width of HeaderCtrl.. Pin
kumar sanghvi27-Jul-09 1:42
kumar sanghvi27-Jul-09 1:42 
AnswerRe: Item width of HeaderCtrl.. Pin
«_Superman_»27-Jul-09 2:03
professional«_Superman_»27-Jul-09 2:03 
AnswerRe: Item width of HeaderCtrl.. Pin
Iain Clarke, Warrior Programmer27-Jul-09 3:42
Iain Clarke, Warrior Programmer27-Jul-09 3:42 
Question[Message Deleted] Pin
sarita_21627-Jul-09 1:16
sarita_21627-Jul-09 1:16 
QuestionRe: serial communication in dilog based application in vc++ Pin
Chandrasekharan P27-Jul-09 1:24
Chandrasekharan P27-Jul-09 1:24 
AnswerRe: serial communication in dilog based application in vc++ Pin
sarita_21627-Jul-09 1:31
sarita_21627-Jul-09 1:31 
GeneralRe: serial communication in dilog based application in vc++ Pin
King Julien27-Jul-09 3:39
King Julien27-Jul-09 3:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.