system("cls"); error in C

system("cls"); error in C

Post by 7enlightenment1 on Sat Sep 27, 2008 3:02 am
([msg=12625]see system("cls"); error in C[/msg])

i use system("cls"); to clear the screen of my console..

recently,something happened which made my computer shut down everytime a system("cls"); code is found at a program.

really need ur help to fix this.

i ran virus scans/anti spyware-malware etc..
but still,result is futile.
7enlightenment1
New User
New User
 
Posts: 4
Joined: Sat Sep 27, 2008 2:59 am
Blog: View Blog (0)


Re: system("cls"); error in C

Post by __ASMx86 on Sat Sep 27, 2008 4:33 am
([msg=12632]see Re: system("cls"); error in C[/msg])

Check CMDs MD5 hash and do not use systemcls in C there is a good Windows API to do that kind of stuff =)

Hope that helpd.
__ASMx86
New User
New User
 
Posts: 38
Joined: Sun Sep 14, 2008 3:15 pm
Location: The Netherlands
Blog: View Blog (0)


Re: system("cls"); error in C

Post by Tek-E on Thu Feb 12, 2009 12:49 pm
([msg=17757]see Re: system("cls"); error in C[/msg])

Instead of using the system() function try using clrscr() instead.
be sure to include system.h

bet of luck to you.

-- Thu Feb 12, 2009 12:52 pm --

This may sound weird....but are ANSI bombs still in use??? that might be what the problem is?
Everytime you give the command or a program gives the command cls it could be instead issuing the shutdown command. due to an ANSI bomb.
Im not positive about this but I guess it is a posibility. I would look into that if I were you!
User avatar
Tek-E
New User
New User
 
Posts: 15
Joined: Thu Jan 22, 2009 11:47 pm
Blog: View Blog (0)



Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests