Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / how can i stop agk programm in C++ ?

Author
Message
SkinK4ir3
8
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 15th Aug 2016 18:36
hi everyone !

someone know how can i stops my application agk , in C++?

i already try break; , end(); ...

but dont Works
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 15th Aug 2016 19:15
did agk::End(); exists?

it seems the begin/loop/end functions are called by the app class.
AGK (Steam) V2.0.20 : Windows 10 Pro 64 Bit : AMD (16.3.2) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
SkinK4ir3
8
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 15th Aug 2016 20:16
agk::End(); dont exists xD
Scotty1973
AGK Backer
12
Years of Service
User Offline
Joined: 2nd Jun 2011
Location: Burton-on-Trent, uk
Posted: 15th Aug 2016 22:40
You need to call the app::End() function. Then in the app::End() function you need to put Exit(0);

Scotty

SkinK4ir3
8
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 20th Aug 2016 04:27
thanks Scotty1973
SkinK4ir3
8
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 20th Aug 2016 04:28
thanks markus
mrradd
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: CA, USA
Posted: 22nd Aug 2016 18:27 Edited at: 22nd Aug 2016 18:27
Core.cpp closes the app. I forget which line it is on, but basically I ended up making app::loop return a boolean to tell Core.cpp when to close. Look in Core.cpp for where App is used to try to find the section I am talking about. There shouldn't be too many locations.

Login to post a reply

Server time is: 2024-04-27 00:21:38
Your offset time is: 2024-04-27 00:21:38