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

C / C++ / MFC

 
AnswerRe: problem in executing .net 2005 exe in .net 2003 environment Pin
prasad_som7-Sep-06 21:33
prasad_som7-Sep-06 21:33 
QuestionTransperent Bitmaps Pin
mpk19797-Sep-06 19:40
mpk19797-Sep-06 19:40 
AnswerRe: Transperent Bitmaps Pin
Hamid_RT7-Sep-06 19:49
Hamid_RT7-Sep-06 19:49 
QuestionCheck Files in used Pin
thangnvhl7-Sep-06 17:45
thangnvhl7-Sep-06 17:45 
AnswerRe: Check Files in used Pin
aldo hexosa7-Sep-06 18:38
professionalaldo hexosa7-Sep-06 18:38 
QuestionRe: Check Files in used Pin
David Crow8-Sep-06 4:25
David Crow8-Sep-06 4:25 
AnswerRe: Check Files in used Pin
Renjith Ramachandran7-Sep-06 20:44
Renjith Ramachandran7-Sep-06 20:44 
QuestionHow to delete a file after user close it Pin
rockryan7-Sep-06 17:39
rockryan7-Sep-06 17:39 
Hi, Expert,

Now I'm implementing a encrypt software, all file is encrypted in a folder,
But when user wanna excute the file, I need decrypt the file and use CreateFile and WriteFile function copy it to a temp file. Then use ShellExecute let user can excute the file. when user edit and save the temp one, I'll encrypt back to the origin encrypt file.

Now my problem is, After user close the file, I need delete the temp one, because all it's content is not encrypt.

I search long time on internet, Can't use "open exclusive" to check is the file opened, because it can't detect notepad or ultraedit, also can't search the window's title to check have the file name or not, because some program may not show file name on window's title.

I found CreateFile have a param FILE_FLAG_DELETE_ON_CLOSE, but can't figure out how to solve my problem, or can you provide any other solution? Thanks!!
AnswerRe: How to delete a file after user close it Pin
Rinu_Raj7-Sep-06 17:50
Rinu_Raj7-Sep-06 17:50 
AnswerRe: How to delete a file after user close it Pin
Waldermort7-Sep-06 18:29
Waldermort7-Sep-06 18:29 
Questionhow to clear view in SDI form Pin
aldo hexosa7-Sep-06 17:33
professionalaldo hexosa7-Sep-06 17:33 
QuestionRe: how to clear view in SDI form Pin
prasad_som7-Sep-06 19:05
prasad_som7-Sep-06 19:05 
AnswerRe: how to clear view in SDI form Pin
Arman S.7-Sep-06 20:44
Arman S.7-Sep-06 20:44 
AnswerRe: how to clear view in SDI form Pin
Hamid_RT8-Sep-06 8:13
Hamid_RT8-Sep-06 8:13 
QuestionCreating a root CA certificate Pin
Stick^7-Sep-06 13:28
Stick^7-Sep-06 13:28 
QuestionLeft/Right mouse button on Control Pin
jsumm7-Sep-06 10:53
jsumm7-Sep-06 10:53 
AnswerRe: Left/Right mouse button on Control Pin
Jun Du7-Sep-06 13:42
Jun Du7-Sep-06 13:42 
AnswerRe: Left/Right mouse button on Control Pin
Hamid_RT8-Sep-06 8:12
Hamid_RT8-Sep-06 8:12 
QuestionHow to use WIA in VC 2005 Pin
tgchuhan7-Sep-06 9:55
tgchuhan7-Sep-06 9:55 
AnswerRe: How to use WIA in VC 2005 Pin
led mike7-Sep-06 10:21
led mike7-Sep-06 10:21 
GeneralRe: How to use WIA in VC 2005 Pin
tgchuhan8-Sep-06 2:22
tgchuhan8-Sep-06 2:22 
GeneralRe: How to use WIA in VC 2005 Pin
led mike8-Sep-06 4:37
led mike8-Sep-06 4:37 
GeneralRe: How to use WIA in VC 2005 Pin
tgchuhan9-Sep-06 1:17
tgchuhan9-Sep-06 1:17 
GeneralRe: How to use WIA in VC 2005 Pin
led mike11-Sep-06 5:03
led mike11-Sep-06 5:03 
QuestionPropertyPage with ListCtrl Pin
DanYELL7-Sep-06 8:48
DanYELL7-Sep-06 8:48 

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.