Click here to Skip to main content
15,915,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionShared Memory and XML File ? [modified] Pin
Sakthiu22-Nov-06 18:47
Sakthiu22-Nov-06 18:47 
AnswerRe: Shared Memory and XML File ? Pin
Viorel.22-Nov-06 20:16
Viorel.22-Nov-06 20:16 
QuestionRotating image Pin
Kshitij Pande22-Nov-06 18:37
Kshitij Pande22-Nov-06 18:37 
AnswerRe: Rotating image Pin
Waldermort22-Nov-06 19:59
Waldermort22-Nov-06 19:59 
GeneralRe: Rotating image Pin
Kshitij Pande22-Nov-06 21:25
Kshitij Pande22-Nov-06 21:25 
GeneralRe: Rotating image Pin
Kshitij Pande23-Nov-06 4:27
Kshitij Pande23-Nov-06 4:27 
QuestionCatch file close event Pin
Sudhir Mangla22-Nov-06 18:36
professionalSudhir Mangla22-Nov-06 18:36 
AnswerRe: Catch file close event Pin
Galatei23-Nov-06 2:21
Galatei23-Nov-06 2:21 
Hi,
Some time ago I wrote similiar DMS for some company, but my idea is slightly different than yours.

Instead of passing document directly to the application which is associated as default, you could create another file as temporary with additional parameters (temporary, remove on file close, share read/write), copy content of original file to it, open the file with associated app (don't close its handle).

Pros:
- original file doesn't need to be locked,
- you can track changes,
- you can let user decide wheter the original file should be updated or not,
- you don't have to care about temporary file, unless user closes it,
- you can monitor changes made to that file, by using handle to it.

Cons:
- a bit more code to write, than in simple handle checking Big Grin | :-D

As for your way, there's a nice tool you can use: Sysinternals - Handle (by dumping its output to your redirected standard output).

Regards
QuestionDetect if a folder is locked Pin
Sudhir Mangla22-Nov-06 18:22
professionalSudhir Mangla22-Nov-06 18:22 
AnswerRe: Detect if a folder is locked Pin
Rajesh R Subramanian22-Nov-06 23:50
professionalRajesh R Subramanian22-Nov-06 23:50 
AnswerRe: Detect if a folder is locked Pin
Galatei23-Nov-06 2:34
Galatei23-Nov-06 2:34 
QuestionToolTip not working Pin
Parthi_Appu22-Nov-06 18:20
Parthi_Appu22-Nov-06 18:20 
AnswerRe: ToolTip not working Pin
Galatei23-Nov-06 2:40
Galatei23-Nov-06 2:40 
QuestionAdding functons to Interface Pin
Suresh H22-Nov-06 18:19
Suresh H22-Nov-06 18:19 
Questionproblem with free() Pin
cy163@hotmail.com22-Nov-06 17:25
cy163@hotmail.com22-Nov-06 17:25 
AnswerRe: problem with free() Pin
Waldermort22-Nov-06 18:02
Waldermort22-Nov-06 18:02 
AnswerRe: problem with free() Pin
CPallini22-Nov-06 20:14
mveCPallini22-Nov-06 20:14 
QuestionTo hide the tab control Pin
see me22-Nov-06 17:08
see me22-Nov-06 17:08 
AnswerRe: To hide the tab control Pin
see me22-Nov-06 19:32
see me22-Nov-06 19:32 
QuestionHow to set the short file name? Pin
gydong2222-Nov-06 15:58
gydong2222-Nov-06 15:58 
AnswerRe: How to set the short file name? Pin
Christian Graus22-Nov-06 16:18
protectorChristian Graus22-Nov-06 16:18 
AnswerRe: How to set the short file name? Pin
CPallini22-Nov-06 20:02
mveCPallini22-Nov-06 20:02 
AnswerRe: How to set the short file name? Pin
Michael Dunn23-Nov-06 0:35
sitebuilderMichael Dunn23-Nov-06 0:35 
QuestionHow to "CreateDirectory" , "CopyFile" and "ChangeDirectory" in MFC Pin
Larry Mills Sr22-Nov-06 14:00
Larry Mills Sr22-Nov-06 14:00 
AnswerRe: How to "CreateDirectory" , "CopyFile" and "ChangeDirectory" in MFC Pin
Mark Salsbery22-Nov-06 14:12
Mark Salsbery22-Nov-06 14:12 

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.