Click here to Skip to main content
15,904,652 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl Selection problem Pin
Zombie_Inc11-Feb-07 11:32
Zombie_Inc11-Feb-07 11:32 
GeneralRe: CListCtrl Selection problem Pin
Mark Salsbery11-Feb-07 11:35
Mark Salsbery11-Feb-07 11:35 
GeneralRe: CListCtrl Selection problem Pin
Mark Salsbery11-Feb-07 11:50
Mark Salsbery11-Feb-07 11:50 
QuestionLog file structures Pin
Waldermort11-Feb-07 8:46
Waldermort11-Feb-07 8:46 
AnswerRe: Log file structures Pin
Mark Salsbery11-Feb-07 9:21
Mark Salsbery11-Feb-07 9:21 
GeneralRe: Log file structures Pin
Waldermort11-Feb-07 9:40
Waldermort11-Feb-07 9:40 
GeneralRe: Log file structures Pin
Mark Salsbery11-Feb-07 10:28
Mark Salsbery11-Feb-07 10:28 
GeneralRe: Log file structures Pin
Waldermort11-Feb-07 20:40
Waldermort11-Feb-07 20:40 
I had a thought about this last night. I will use a linked list of fixed size structures, let's say 128 bytes. Each entry may use one or more of these structures to span the data. The first would contain the time stamps, source details etc.. the next would act as an overflow from the first.

Continue like this until the end of the file is found, then, link the last to the first and overwrite the data within the first group of items, if more space is required, overwrite the next group also.

Depending on the size chosen for each structure, the wasted space would be limited to a few bytes for each entered record. In the header, I would only need to store the offset to the first and last. Each record would then store an offset to it's overflow and a count of it's overflows ( if required ) and the offset of the next list item.

On with the coding...
GeneralRe: Log file structures Pin
kakan12-Feb-07 1:17
professionalkakan12-Feb-07 1:17 
GeneralRe: Log file structures Pin
Waldermort12-Feb-07 2:00
Waldermort12-Feb-07 2:00 
GeneralRe: Log file structures Pin
kakan12-Feb-07 2:04
professionalkakan12-Feb-07 2:04 
QuestionCreateFileMapping/MapViewOfFile and 0xC0000005 (ACCESS_DENIED) Pin
Jeffrey Walton11-Feb-07 3:59
Jeffrey Walton11-Feb-07 3:59 
AnswerRe: CreateFileMapping/MapViewOfFile and 0xC0000005 (ACCESS_DENIED) Pin
Waldermort11-Feb-07 4:06
Waldermort11-Feb-07 4:06 
GeneralRe: CreateFileMapping/MapViewOfFile and 0xC0000005 (ACCESS_DENIED) Pin
Jeffrey Walton11-Feb-07 10:06
Jeffrey Walton11-Feb-07 10:06 
GeneralRe: CreateFileMapping/MapViewOfFile and 0xC0000005 (ACCESS_DENIED) Pin
Jeffrey Walton11-Feb-07 10:13
Jeffrey Walton11-Feb-07 10:13 
GeneralRe: CreateFileMapping/MapViewOfFile and 0xC0000005 (ACCESS_DENIED) Pin
Waldermort11-Feb-07 20:27
Waldermort11-Feb-07 20:27 
AnswerRe: CreateFileMapping/MapViewOfFile and 0xC0000005 (ACCESS_DENIED) Pin
Jeffrey Walton11-Feb-07 10:09
Jeffrey Walton11-Feb-07 10:09 
GeneralRe: CreateFileMapping/MapViewOfFile and 0xC0000005 (ACCESS_DENIED) Pin
Mark Salsbery11-Feb-07 10:41
Mark Salsbery11-Feb-07 10:41 
QuestionWeb service in the MFC, who can answer??????? Pin
Tarek Jabri11-Feb-07 2:39
Tarek Jabri11-Feb-07 2:39 
AnswerRe: Web service in the MFC, who can answer??????? Pin
Christian Graus11-Feb-07 11:43
protectorChristian Graus11-Feb-07 11:43 
QuestionXML Packet Pin
Member 292037811-Feb-07 2:37
Member 292037811-Feb-07 2:37 
AnswerRe: XML Packet Pin
Hamid_RT12-Feb-07 6:46
Hamid_RT12-Feb-07 6:46 
QuestionUML drawings of class diagrams for a general dialog based GUI application Pin
dtraj110-Feb-07 21:20
dtraj110-Feb-07 21:20 
QuestionPlease Clarify. Pin
ashwath197910-Feb-07 19:45
ashwath197910-Feb-07 19:45 
AnswerRe: Please Clarify. Pin
Hamid_RT10-Feb-07 20:51
Hamid_RT10-Feb-07 20:51 

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.