Let there be an executable file say, t1.exe. If I run t1.exe then it shall copy itself to a new executable file say t2.exe.
Code:#include #include #include
unsigned long int t=0;
unsigned long int pos=ftell(fp);
printf("End of t1");
t2.exe is created but when I run this it says "t2 has stopped working." I'm using Windows 7(Home Basic) 64bit. The program is compiled with Borland C++ V. 5.02.
Please reply fast!!! It's URGENT....!!!!