Help with program self destruction

This is a discussion on Help with program self destruction within the C++ Programming forums, part of the General Programming Boards category; Hi, I would like to ask how do you destroy the permanent copy of the .exe within the program itself? ...

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    37

    Question Help with program self destruction

    Hi,

    I would like to ask how do you destroy the permanent copy of the .exe within the program itself? I tried remove from cstdio, and a probably wrong approach in writing a single 0 to the program file. In both cases, the .exe is still undamaged. How do you destroy it?

    Thanks in advance.

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    I can see no legitimate purpose for doing this, and I predict the thread will be closed soon...
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,303
    Aye, thread self destruction.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  2. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  3. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 01:27 PM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 11:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21