Click here to Skip to main content
15,899,314 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTaskbar button height Pin
Fantmx11-Nov-04 9:03
Fantmx11-Nov-04 9:03 
GeneralRe: Taskbar button height Pin
PJ Arends11-Nov-04 10:50
professionalPJ Arends11-Nov-04 10:50 
GeneralRe: Taskbar button height Pin
Fantmx11-Nov-04 13:10
Fantmx11-Nov-04 13:10 
GeneralRe: Taskbar button height Pin
PJ Arends12-Nov-04 6:35
professionalPJ Arends12-Nov-04 6:35 
GeneralCalling JScript from MFC App Pin
nlecren11-Nov-04 7:35
nlecren11-Nov-04 7:35 
GeneralSelf-deleting executable Pin
BlackDice11-Nov-04 5:58
BlackDice11-Nov-04 5:58 
GeneralRe: Self-deleting executable Pin
Rick York11-Nov-04 6:49
mveRick York11-Nov-04 6:49 
GeneralRe: Self-deleting executable Pin
Navin11-Nov-04 6:57
Navin11-Nov-04 6:57 
Yes, but it requires some roundabout work. The gyst of is is that the EXE should create a batch file that tries to delete that EXE file and then itself, and then the EXE should shut down. The batch file then will be able to delete the EXE file. (Note that batch files have the unique ability to delete themselves.)

The batch file would be something along the lines of this (please excuse any syntax errors!)
rem First, delete the EXE.  It will be in use unti
rem it quits, so keep trying until we succeed.
:label
DEL myfile.exe
if exist myfile.exe goto label

rem Now delete this batch file
delete %0.bat


There is an MSDN article about it - I can't recall it right now, but some searching will probably find it.


An expert is somebody who learns more and more about less and less, until he knows absolutely everything about nothing.
GeneralRe: Self-deleting executable Pin
BlackDice11-Nov-04 7:14
BlackDice11-Nov-04 7:14 
QuestionHOW CAN I CONVERT VISUAL C++ DLL(a DLL which writed in visual C++) TO BORLAND DLL? Pin
gurk@n11-Nov-04 5:13
gurk@n11-Nov-04 5:13 
AnswerRe: HOW CAN I CONVERT VISUAL C++ DLL(a DLL which writed in visual C++) TO BORLAND DLL? Pin
Anonymous11-Nov-04 7:46
Anonymous11-Nov-04 7:46 
GeneralVirtual serial port and TCP/IP Pin
Nikolaou11-Nov-04 4:41
Nikolaou11-Nov-04 4:41 
GeneralRe: Virtual serial port and TCP/IP Pin
Antti Keskinen11-Nov-04 6:58
Antti Keskinen11-Nov-04 6:58 
GeneralRe: Virtual serial port and TCP/IP Pin
Nikolaou6-Dec-04 0:08
Nikolaou6-Dec-04 0:08 
GeneralRe: Virtual serial port and TCP/IP Pin
Antti Keskinen6-Dec-04 6:14
Antti Keskinen6-Dec-04 6:14 
GeneralRe: Virtual serial port and TCP/IP Pin
Nikolaou6-Dec-04 23:37
Nikolaou6-Dec-04 23:37 
GeneralRe: Virtual serial port and TCP/IP Pin
Antti Keskinen8-Dec-04 8:03
Antti Keskinen8-Dec-04 8:03 
GeneralIP Address Converted to a Number Pin
jerry1211a11-Nov-04 4:30
jerry1211a11-Nov-04 4:30 
GeneralRe: IP Address Converted to a Number Pin
Antony M Kancidrowski11-Nov-04 7:07
Antony M Kancidrowski11-Nov-04 7:07 
GeneralRe: IP Address Converted to a Number Pin
geo_m11-Nov-04 19:39
geo_m11-Nov-04 19:39 
GeneralRaw Sockets on XP SP1 Pin
Anonymous11-Nov-04 3:21
Anonymous11-Nov-04 3:21 
GeneralRe: Raw Sockets on XP SP1 Pin
Antti Keskinen11-Nov-04 7:20
Antti Keskinen11-Nov-04 7:20 
General<b>Help!! How to access Static control from other class</B> Pin
VikramDelhi11-Nov-04 3:13
VikramDelhi11-Nov-04 3:13 
GeneralRe: <b>Help!! How to access Static control from other class</B> Pin
GDavy11-Nov-04 3:29
GDavy11-Nov-04 3:29 
GeneralRe: <b>Help!! How to access Static control from other class</B> Pin
VikramDelhi13-Nov-04 23:16
VikramDelhi13-Nov-04 23:16 

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.