Search found 39 matches

by Muttley
July 19th, 2013, 12:26 am
Forum: Everything
Topic: How to check if program has cleaned up properly?
Replies: 24
Views: 9533

Re: How to check if program has cleaned up properly?

Hi Muttley, Ah, thats right. I used this with allegro thats why it worked :P Well, instead using cout you could print a text with directx or even a huge red square to tell you that the destructor was called, it should work at the same way I guess. Problem is that the destructor will only be called ...
by Muttley
July 18th, 2013, 10:36 pm
Forum: Everything
Topic: How to check if program has cleaned up properly?
Replies: 24
Views: 9533

Re: How to check if program has cleaned up properly?

Ah, thats right. I used this with allegro thats why it worked :P
Well, instead using cout you could print a text with directx or even a huge red square to tell you that the destructor was called, it should work at the same way I guess.
by Muttley
July 18th, 2013, 9:21 pm
Forum: Everything
Topic: How to check if program has cleaned up properly?
Replies: 24
Views: 9533

Re: How to check if program has cleaned up properly?

Asimov wrote:Hi Muttley,

I always forget where to turn on console mode heh heh.
I know it is there somewhere LOL.
If you are using VS go to project properties > Linker > System > SubSystem. I think thats it.
by Muttley
July 18th, 2013, 8:39 pm
Forum: Everything
Topic: How to check if program has cleaned up properly?
Replies: 24
Views: 9533

Re: How to check if program has cleaned up properly?

Hi Shaki, If you mean by a handler a method in the class which frees the memory instead of putting it inside the destructor. And this handler can be called just before the program shuts down. That is feasable. Although I thought it was cleaner to put the free memory inside the desctructor of each c...
by Muttley
December 3rd, 2012, 9:43 pm
Forum: Everything
Topic: Help! Lesson 20
Replies: 10
Views: 4696

Re: Help! Lesson 20

by Muttley
December 2nd, 2012, 9:30 pm
Forum: Everything
Topic: Releasing something?
Replies: 29
Views: 9980

Re: Releasing something?

Hi guys, I have learned how to post a game for you, and just you (Chili followers). Now, how to send my game to a friend? chili said: if your friend doesn't have visual studio installed you'll need to either statically link to the runtime library or include the crt dll with your game. What does tha...
by Muttley
November 30th, 2012, 2:52 am
Forum: Everything
Topic: a quick question?
Replies: 2
Views: 1756

Re: a quick question?

Based in this piece of code, I think the error is here: Game::Game( HWND hWnd,const KeyboardServer& kServer ) : gfx ( hWnd ), kbd( kServer ), x( 400 ), y( 300 ), Try replacing with this: Game::Game( HWND hWnd,const KeyboardServer& kServer ) : gfx ( hWnd ), kbd( kServer ), x( 400 ), y( 300 ) {}
by Muttley
November 30th, 2012, 2:47 am
Forum: Everything
Topic: Lesson 20 errors
Replies: 2
Views: 1753

Re: Lesson 20 errors

Get rid of #include "Game.h" in D3DGraphics.h .
by Muttley
November 27th, 2012, 10:37 pm
Forum: Everything
Topic: Backbuffer color
Replies: 4
Views: 2281

Re: Backbuffer color

by Muttley
November 27th, 2012, 2:58 am
Forum: Everything
Topic: Question about Constructors
Replies: 7
Views: 2938

Re: Question about Constructors

Both do the same thing, #1 foo::foo : bar( 10 ), x( 150 ), y( 200 ) {} I see the first example as a shortcut to initialize simple variables. #2 foo::foo { bar = 10; x = 150; y = 200; for( int index = 0; index < 5; index++ ) { numbers[index] = index; } } The second example do exactly the same thing, ...