Jump to content


Nickwel96

Member Since 14 Nov 2012
Offline Last Active Nov 29 2012 10:09 PM
-----

Topics I've Started

Unable to start program because of missing .exe

28 November 2012 - 02:56 PM

EVerytime I try to debug my programs I keep getting: Unable to start program 'c:\Users\Nick\Documents\Visual Studio 2008\Templates\devmaster_intro-to-c-tmpl83.00c_oct14\Template_debug.exe'. System cant find specified path

Can someone please tell me why this is. This is part 8 in the tutorial I'm doing, and it is the first time I have this problem.
thanks...

Help needed in C++

14 November 2012 - 08:23 PM

I'm currently doing a C++ tutorial on the site.
But im kinda stuck on this part of the tutorial: http://devmaster.net...art-3-variables

I've done everything it says, but at the bottom you see the assignments. There i'm stuck at getting fat I to move.
The code I currently have is:


#include "string.h"
#include "surface.h"
#include "stdlib.h"
#include "template.h"
#include "game.h"

using namespace Tmpl8;

void Game::Init()
{
// put your initialization code here; will be executed once
}
int x = 100;
int y = 0;
void Game::Tick( float a_DT )
{
// render a single frame here
m_Screen->Clear( 80 );
DrawFatI( 100 + x , 0 + y);
x = x + 1;
}
void Game::DrawI( int x, int y )
{
// render a single frame here
m_Screen->Line( 100 + x, 50 + y, 200 + x, 50 + y, 0xffffff );
m_Screen->Line( 150 + x, 50 + y, 150 + x, 300 + y, 0xffffff );
m_Screen->Line( 100 + x, 300 + y, 200 + x, 300 + y, 0xffffff );
}
void Game::DrawFatI( int x, int y )
{
DrawI( 0, 0 );
DrawI( 1, 0 );
DrawI( 0, 1 );
DrawI( 1, 1 );
x++;
}
__________________________________________________________________
Also I've made a - void DrawFatI(int x, int y); - in game.h
Can someone tell me what i'm doind wrong here?
Already much thanks for your time!