main.cpp:
Code: Select all
#include <irrlicht.h>
using namespace irr;
#pragma comment(lib, "Irrlicht.lib")
int main()
{
//Creating the Irrlicht Engine Device
IrrlichtDevice *device =
createDevice(EDT_SOFTWARE, dimension2d<s32> (512, 384), 16, false, false, 0);
//Setting the Window's Title
device->setWindowCaption(L"Hello World - This is a Irrlicht Engine Test");
//Storing a Pointer to the Video Driver
IVideoDriver* driver = device->getVideoDriver();
//Storing a Pointer to the Scene Manager
ISceneManager* smgr = device->getSceneManager();
//Storing a Pointer to the GUI
IGUIEnviroment* guienv = device->getGUIEnvironment();
//Adding some text
guienv->addStaticText(L"Hello World - This is a Irrlicht Engine Test",
rect<int>(10,10,200,30, true);
//Making a while loop to display everything to the screen
while(device->run())
{
//Clearing the screen
driver->beginScene(true, true, SColor(0,100,100,100));
//Drawing Content
smgr->drawAll();
guienv->drawAll();
//Calling content to the screen
driver->endScene();
}//While
//Deleting Content on the screen
device->drop();
return 0;
} //int main
Can anyone help me?------ Build started: Project: Irrlicht_Demo, Configuration: Release Win32 ------
Compiling...
hello-world_demo.cpp
hello-world_demo.cpp(46) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Build log was saved at "file://c:\Documents and Settings\shadow\My Documents\Visual Studio Projects\Irrlicht_Demo\Release\BuildLog.htm"
Irrlicht_Demo - 1 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
Thanks in advanced