|
| 02 Jul 2012 10:56 AM |
Hi, I'm a beginner in C++ and am trying to figure out how to close a window. I think it might have something to do with FindWindow() & DestroyWindow(). Could anyone help? Thanks, littleAU. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 10:59 AM |
| C++ is object orientated, correct? |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
| |
|
|
| 02 Jul 2012 11:05 AM |
| exit(1); wouldn't work... How would you find a open window and close it? |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 11:14 AM |
Window.Destroy() ?
I've never programmed in C++, but there should be a methodical reference on the internet of the object you're using. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 11:28 AM |
| Window.Destroy() wouldnt work either. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 11:30 AM |
*Facepalm*
I meant, check the library your using, check the object you're using, and then research it! |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 12:01 PM |
| Figured it out! Except DestroyWindow() isnt working... |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 12:28 PM |
| I'm more of a Java guy, but is there a Dispose method available? |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 01:14 PM |
^
I don't know C++ at all, yet I love programming in Java! The only problem is the fact that I don't know about any libraries, at all, except AWT and swing. By the way, would you rather use the Abstract Windowing Kit or Swing components in an applet? |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 02:40 PM |
I would use Swing. However I created my own GUI library based off of ROBLOX's GUI :P |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 02:43 PM |
*No clue of C++ Scripting*
Uhh, You click the Red button with the White "X" in it.
=) |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 02 Jul 2012 02:49 PM |
>However I created my own GUI library based off of ROBLOX's GUI :P
Oh, great idea I'm going to make this with sfml.
Like a class for button which contains the text and the frame and has clicking 'events'.
|
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 03:31 PM |
| @Crazy, you imported them? 0_o |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 03:57 PM |
| No, I made it from scratch. I call it Aero2D. So far I've managed to make a fully working TicTacToe game. Doesn't sound very amazing, but it runs extremely well and it got me an internship with the devs at Nationwide Ins. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 04:03 PM |
| What libraries did you use to create that?! I've never made anything better than a simple Swing GUI in Java as every time I research it, my brain cannot handle different classes going every which way, it's mind-boggling! >_< |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 04:03 PM |
i know how to crash windows through C++ but id get banned
[Siggy Deleted] |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 04:09 PM |
| I just used the standard built-in libraries. Nothing too complex. I used a JFrame in Swing to create the initial window though. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 04:14 PM |
| Ah, I was beginning to think that you did something ridiculous. =P |
|
|
| Report Abuse |
|
|