Page 1 of 1

Need help getting engine running

Posted: Thu Apr 05, 2007 4:08 am
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]

Posted: Thu Apr 05, 2007 1:11 pm
by franklyn
that is indeed quite strange. does it work if you comment it out ?.

Posted: Thu Apr 05, 2007 3:37 pm
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.

Posted: Thu Apr 05, 2007 3:42 pm
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?

Posted: Thu Apr 05, 2007 4:16 pm
by virtual x

Posted: Thu Apr 05, 2007 9:22 pm
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.

Posted: Sun Apr 08, 2007 1:04 am
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.