Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVC++ 6.0 Install Shield Pin
Anu_Bala16-Jun-08 19:53
Anu_Bala16-Jun-08 19:53 
AnswerRe: VC++ 6.0 Install Shield Pin
Hamid_RT16-Jun-08 20:18
Hamid_RT16-Jun-08 20:18 
AnswerRe: VC++ 6.0 Install Shield Pin
Cedric Moonen16-Jun-08 20:32
Cedric Moonen16-Jun-08 20:32 
GeneralRe: VC++ 6.0 Install Shield Pin
Anu_Bala16-Jun-08 20:37
Anu_Bala16-Jun-08 20:37 
QuestionPlugin development for Outlook express/ Windows Mail in win32 c Pin
dolly16-Jun-08 19:26
dolly16-Jun-08 19:26 
AnswerRe: Plugin development for Outlook express/ Windows Mail in win32 c Pin
Member 350795926-Oct-09 8:36
Member 350795926-Oct-09 8:36 
QuestionFile should delete itself Pin
VCProgrammer16-Jun-08 19:18
VCProgrammer16-Jun-08 19:18 
AnswerRe: File should delete itself Pin
Rajesh R Subramanian16-Jun-08 19:32
professionalRajesh R Subramanian16-Jun-08 19:32 
An executable cannot delete "itself". You may consider a script, or a batch file which will have all the files of your interest deleted. Here's a batch file, which works for me:

@echo off
sleep 50000
del /q "D:\files\file1.txt"
del /q "D:\files\file2.txt"
del /q "D:\files\MyDialog.exe"
del /q "D:\files\mybatch.bat"
exit

Whereas mybatch.bat is the batch file itself. Finish the stuff with your dialog and call this batch file with a ShellExecute()[^]. I've added a delay at the beginning of the batch file to make sure that the dialog gets enough time to quit.


Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP

JokeRe: File should delete itself Pin
Hamid_RT16-Jun-08 20:59
Hamid_RT16-Jun-08 20:59 
GeneralRe: File should delete itself Pin
Rajesh R Subramanian16-Jun-08 21:16
professionalRajesh R Subramanian16-Jun-08 21:16 
GeneralRe: File should delete itself Pin
Hamid_RT16-Jun-08 21:22
Hamid_RT16-Jun-08 21:22 
GeneralRe: File should delete itself Pin
Rajesh R Subramanian16-Jun-08 23:13
professionalRajesh R Subramanian16-Jun-08 23:13 
AnswerRe: File should delete itself Pin
Jagdish V. Bhimbha16-Jun-08 19:38
Jagdish V. Bhimbha16-Jun-08 19:38 
GeneralRe: File should delete itself Pin
David Crow17-Jun-08 4:21
David Crow17-Jun-08 4:21 
AnswerRe: File should delete itself Pin
santhoshv8416-Jun-08 19:44
santhoshv8416-Jun-08 19:44 
AnswerRe: File should delete itself Pin
Jijo.Raj16-Jun-08 19:48
Jijo.Raj16-Jun-08 19:48 
QuestionSomeone Please Help (WinPCap/TCP Capture) Pin
Joe_Scialabba16-Jun-08 18:45
Joe_Scialabba16-Jun-08 18:45 
AnswerRe: Someone Please Help (WinPCap/TCP Capture) Pin
malaugh17-Jun-08 11:52
malaugh17-Jun-08 11:52 
QuestionUsing structure in Timer Pin
Anu_Bala16-Jun-08 18:35
Anu_Bala16-Jun-08 18:35 
AnswerRe: Using structure in Timer [modified] Pin
Jijo.Raj16-Jun-08 18:56
Jijo.Raj16-Jun-08 18:56 
GeneralRe: Using structure in Timer Pin
Anu_Bala16-Jun-08 19:13
Anu_Bala16-Jun-08 19:13 
GeneralRe: Using structure in Timer Pin
Jijo.Raj16-Jun-08 19:55
Jijo.Raj16-Jun-08 19:55 
GeneralRe: Using structure in Timer Pin
Anu_Bala16-Jun-08 20:22
Anu_Bala16-Jun-08 20:22 
GeneralRe: Using structure in Timer Pin
Jijo.Raj16-Jun-08 20:37
Jijo.Raj16-Jun-08 20:37 
AnswerRe: Using structure in Timer Pin
Anu_Bala16-Jun-08 20:48
Anu_Bala16-Jun-08 20: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.