Need help getting engine running

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
DragonsFall
Posts: 3
Joined: Thu Apr 05, 2007 3:05 am

Need help getting engine running

Post by DragonsFall »

When i try to compile and run, the tutorials tell me to select a renderer i usualy choose directX9 and it works (from the precompiled .exe's) but when i am trying to do it myself, (right now i have pretty much a copy of tutorial 2's main.cpp and it tells me that....

Code: Select all

Irrlicht Engine version 1.3
Microsoft Windows XP Professional Service Pack 2 (Build 2600)
DIRECT3D9 Driver was not compiled into this dll. Try another one.
so i try other ones and i get....



Image

and then it crashes... any ideas anybody? i think i might need some sort of directX SDK, but im not sure what that is. (im new to 3d development)


EDIT:

ok i have isolated my problem... it crashes when this line tries to execute.

Code: Select all

device->getCursorControl()->setVisible(false);
and i have the map loaded but it this seams strange to me as i have used other classes that implement the device object...[/code]
franklyn
Posts: 36
Joined: Thu Mar 15, 2007 7:03 pm

Post by franklyn »

that is indeed quite strange. does it work if you comment it out ?.
DragonsFall
Posts: 3
Joined: Thu Apr 05, 2007 3:05 am

Post by DragonsFall »

yeah it works just fine, while using the openGL driver. my directX drivers dont work still. but when i comment it out everything works smooth, and its just that one thing that dosent work.
stodge
Posts: 216
Joined: Fri Dec 05, 2003 5:57 pm

Post by stodge »

You're dealing with two pointers here, not just the device:

Code: Select all

getCursorControl()->
What does this return?

Code: Select all

control = device->getCursorControl();
control->setVisible(false);
Should crash on the second line?
What does the debugger tell you? You did use the debugger, didn't you?
virtual x
Posts: 19
Joined: Sun Mar 25, 2007 8:48 pm

Post by virtual x »

DragonsFall
Posts: 3
Joined: Thu Apr 05, 2007 3:05 am

Post by DragonsFall »

thanks for the tutorial virtual. and i would execute that code you gave me but im new to irrlicht and i need to know what ype of object "control" is so that i may declare it as so... im searching throught the documentation now to try and find it.

EDIT:
for anybody reading this with the same question, here is the code i used.

Code: Select all

irr::gui::ICursorControl* control = device->getCursorControl();
control->setVisible(false);
and yes you are correct, it crashes on the second line.
Last Nephilim
Posts: 1
Joined: Sat Apr 07, 2007 1:30 pm
Location: Wipperfürth, Germany
Contact:

Post by Last Nephilim »

I have the same problem and my question is: where do I get some other dll Files?
Hope you are able to help me.
Post Reply