Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Beginning [C++]
Goto page Previous  1, 2, 3, 4, 5, 6
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
lucid
Master Cheater
Reputation: 0

Joined: 23 Jan 2008
Posts: 424

PostPosted: Sat Aug 23, 2008 9:33 pm    Post subject: Reply with quote

I will in the morning.
Back to top
View user's profile Send private message
igoticecream
Grandmaster Cheater Supreme
Reputation: 0

Joined: 23 Apr 2006
Posts: 1807
Location: 0x00400000

PostPosted: Sun Aug 24, 2008 3:50 pm    Post subject: Reply with quote

sponge wrote:
Code:
system("pause");
BADBADBADBADBAD.



hmmm... i use getch(); of conio.h lib... o.O

_________________
+~
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sun Aug 24, 2008 9:07 pm    Post subject: Reply with quote

Estraik wrote:
sponge wrote:
Code:
system("pause");
BADBADBADBADBAD.



Suuuuure.
It is bad.
_________________
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Sun Aug 24, 2008 11:06 pm    Post subject: Reply with quote

just do

bool pause = TRUE

while(pause)
Sleep(10);

to pause LOL

if pause = false; it unpauses!

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
WafflesFTW
Expert Cheater
Reputation: 0

Joined: 21 Mar 2008
Posts: 131

PostPosted: Mon Aug 25, 2008 6:38 pm    Post subject: Reply with quote

And how exactly do you expect to pause equal False while your program is trapped within an infinite loop. The only option is to create a new thread, which is probably worse than system.
Back to top
View user's profile Send private message AIM Address
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Mon Aug 25, 2008 6:51 pm    Post subject: Reply with quote

yah diff thread.. and i was trying to make a joke rofl.

thats how pausing is done in VB6 LOL.. but they use instead of sleep.. DoEvents to process the message queue to stop all the freezing up it does from not processing like WM_PAINT etc..

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5, 6
Page 6 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites