Click here to Skip to main content
15,887,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: (Potential) Memory Mapped File question Pin
Joe Woodbury7-Jun-09 17:31
professionalJoe Woodbury7-Jun-09 17:31 
GeneralRe: (Potential) Memory Mapped File question Pin
swjam7-Jun-09 22:54
swjam7-Jun-09 22:54 
GeneralRe: (Potential) Memory Mapped File question Pin
Joe Woodbury8-Jun-09 5:28
professionalJoe Woodbury8-Jun-09 5:28 
GeneralRe: (Potential) Memory Mapped File question Pin
swjam8-Jun-09 18:30
swjam8-Jun-09 18:30 
GeneralRe: (Potential) Memory Mapped File question Pin
Joe Woodbury8-Jun-09 19:34
professionalJoe Woodbury8-Jun-09 19:34 
GeneralRe: (Potential) Memory Mapped File question Pin
swjam9-Jun-09 0:56
swjam9-Jun-09 0:56 
GeneralRe: (Potential) Memory Mapped File question Pin
Joe Woodbury9-Jun-09 5:51
professionalJoe Woodbury9-Jun-09 5:51 
AnswerRe: (Potential) Memory Mapped File question Pin
ktm TechMan7-Jun-09 20:30
ktm TechMan7-Jun-09 20:30 
You can use ReadDirectoryChanges WIN 32 API, which registers for file changes in a directory, and use GetQueuedCompletionStatus function to wait for the changes. So when ever new records get added to A you will get notification of the changes, and read the added record and archive it to B.
You can store a pointer on where you are in the file (like the number of bytes read) and continue from it when the next change arrive so that you don't have to read the whole file every time a change occurs.

If you want to delete contents from the file though you will need some kind of process synchronization to avoid simultaneous write.
QuestionEdit the windows BCD using linux Pin
SalilJain7-Jun-09 9:23
SalilJain7-Jun-09 9:23 
QuestionRe: Edit the windows BCD using linux Pin
David Crow7-Jun-09 16:35
David Crow7-Jun-09 16:35 
QuestionRe: Edit the windows BCD using linux Pin
SalilJain7-Jun-09 16:41
SalilJain7-Jun-09 16:41 
AnswerRe: Edit the windows BCD using linux Pin
David Crow7-Jun-09 17:13
David Crow7-Jun-09 17:13 
GeneralRe: Edit the windows BCD using linux Pin
SalilJain7-Jun-09 22:44
SalilJain7-Jun-09 22:44 
GeneralRe: Edit the windows BCD using linux Pin
David Crow8-Jun-09 3:08
David Crow8-Jun-09 3:08 
QuestionLinux C++ Development difficult startup Pin
gotchagotcha7-Jun-09 0:19
gotchagotcha7-Jun-09 0:19 
AnswerRe: Linux C++ Development difficult startup Pin
Stuart Dootson7-Jun-09 1:17
professionalStuart Dootson7-Jun-09 1:17 
Questionerror C2065: HrFindExchangeGlobalAddressList : undeclared identifier Pin
Pardhu_M6-Jun-09 23:52
Pardhu_M6-Jun-09 23:52 
AnswerRe: error C2065: HrFindExchangeGlobalAddressList : undeclared identifier Pin
Stuart Dootson7-Jun-09 1:01
professionalStuart Dootson7-Jun-09 1:01 
QuestionHow can I get to what I want? Pin
maha39866-Jun-09 21:30
maha39866-Jun-09 21:30 
AnswerRe: How can I get to what I want? Pin
molesworth6-Jun-09 23:35
molesworth6-Jun-09 23:35 
QuestionDetect screen resolution change Pin
manchukuo6-Jun-09 20:11
manchukuo6-Jun-09 20:11 
AnswerRe: Detect screen resolution change Pin
enhzflep6-Jun-09 23:16
enhzflep6-Jun-09 23:16 
GeneralRe: Detect screen resolution change Pin
Randor 6-Jun-09 23:29
professional Randor 6-Jun-09 23:29 
AnswerRe: Detect screen resolution change Pin
Randor 6-Jun-09 23:26
professional Randor 6-Jun-09 23:26 
AnswerRe: Detect screen resolution change Pin
molesworth6-Jun-09 23:36
molesworth6-Jun-09 23:36 

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.