Print a var, who crash when i run it.
Posted: Sun Dec 28, 2008 1:00 pm
Hi all, i try to print a var, and when my exe is reading the code it crash.
I have it:
Someone know why ? thanks a lot
I have it:
Code: Select all
#include "world.h"
#include <iostream>
world::world(IrrlichtDevice* Device,int spouet)
{
device = Device;
IVideoDriver* driver = device->getVideoDriver ();
ISceneManager *scenegraph = device->getSceneManager ();
IGUIEnvironment *gui = scenegraph->getGUIEnvironment();
IGUIEnvironment* env = device->getGUIEnvironment();
scenegraph->addCameraSceneNode (0, core::vector3df (0,0,0), core::vector3df (5,0,0));
printf("%d",spouet);
stringw temp = L" ";
temp += spouet;
login = env->addStaticText(temp.c_str(),rect<s32>(380,700,670,750),false);
}
world::~world()
{
}
char world::draw()
{
}