So you mean this function ?
>>s any way to solve this?
Yes, fix the bug in your program.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
what operating system and compiler are you using? Do you mean the version in my last link? If not, then provide link to it because there is no standard C or C++ library function.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
>>MoveFile(argv[0], KEY);
That will always fail because you can not move a currently running program, and argv[0] contains the name of the program you are writing.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343